cfg80211: fix reporting 5/10 MHz support to user space
authorFelix Fietkau <nbd@openwrt.org>
Sat, 9 Nov 2013 13:57:54 +0000 (14:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Dec 2013 10:51:21 +0000 (11:51 +0100)
commit01e0daa43f129fc1a6bc6f1197343c0293af866d
tree8979029acf47904bbf6d2805b2fa72615960ff11
parentf12140c04ca49ea34c448b1bd8aa40fb9411690c
cfg80211: fix reporting 5/10 MHz support to user space

nla_put_flag needs a real nl80211 attribute id, not a wiphy flag bit.
While at it, split 5 and 10 MHz capability flags in case we ever need
to support hardware that can only do one of the two.

Also move the flag settings to the split-only information so we don't
increase the space needed for old userspace.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
[change location of flag setting]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/wireless/nl80211.c