Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] nl80211: add testmode to the list of supported commands
@ 2011-11-17 17:06 Kalle Valo
  0 siblings, 0 replies; only message in thread
From: Kalle Valo @ 2011-11-17 17:06 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless

User space might want to test if driver supports testmode. Adding testmode
to the list of supported commands makes this easier.

I omitted testmode_dump() in purpose. I assume all drivers implementing
testmode_dump() will also implement testmode_cmd().

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
---
 net/wireless/nl80211.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 864fcb6..5ab8e97 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -897,6 +897,10 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags,
 		NLA_PUT_U32(msg, i, NL80211_CMD_REGISTER_BEACONS);
 	}
 
+#ifdef CONFIG_NL80211_TESTMODE
+	CMD(testmode_cmd, TESTMODE);
+#endif
+
 #undef CMD
 
 	if (dev->ops->connect || dev->ops->auth) {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-17 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17 17:06 [PATCH] nl80211: add testmode to the list of supported commands Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox