From: Kalle Valo Date: Thu, 17 Nov 2011 17:06:10 +0000 (+0200) Subject: nl80211: add testmode to the list of supported commands X-Git-Tag: v3.3-rc1~182^2~44^2~376 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4745fc095da0d276b9c149e87b853b78d42d4f32;p=profile%2Fcommon%2Fkernel-common.git 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 Signed-off-by: John W. Linville --- diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 50482e1..ae8ea38 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, 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) {