diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-11-17 12:06:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-21 16:20:43 -0500 |
commit | 4745fc095da0d276b9c149e87b853b78d42d4f32 (patch) | |
tree | 06b123cce3c4fa7d8244ce9bde7f18168a9e1387 /net/wireless | |
parent | fb4431bf608fe135ba743ecdd0aa084a3569992f (diff) |
nl80211: add testmode to the list of supported commands
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | 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 50482e129263..ae8ea3827acd 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -904,6 +904,10 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags, | |||
904 | NLA_PUT_U32(msg, i, NL80211_CMD_REGISTER_BEACONS); | 904 | NLA_PUT_U32(msg, i, NL80211_CMD_REGISTER_BEACONS); |
905 | } | 905 | } |
906 | 906 | ||
907 | #ifdef CONFIG_NL80211_TESTMODE | ||
908 | CMD(testmode_cmd, TESTMODE); | ||
909 | #endif | ||
910 | |||
907 | #undef CMD | 911 | #undef CMD |
908 | 912 | ||
909 | if (dev->ops->connect || dev->ops->auth) { | 913 | if (dev->ops->connect || dev->ops->auth) { |