cfg80211: Support multiple CSA counters
Change the type of NL80211_ATTR_CSA_C_OFF_BEACON and NL80211_ATTR_CSA_C_OFF_PRESP to be NLA_BINARY which allows userspace to use beacons and probe responses with multiple CSA counters. This isn't breaking the API since userspace can continue to use nla_put_u16 for this attributes, which is equivalent to a single element u16 array. In addition advertise max number of supported CSA counters. This is needed when using CSA and eCSA IEs together. Signed-off-by:Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by:
Luciano Coelho <luciano.coelho@intel.com> Signed-off-by:
Johannes Berg <johannes.berg@intel.com>
Showing
- include/net/cfg80211.h 15 additions, 3 deletionsinclude/net/cfg80211.h
- include/uapi/linux/nl80211.h 7 additions, 4 deletionsinclude/uapi/linux/nl80211.h
- net/mac80211/cfg.c 8 additions, 2 deletionsnet/mac80211/cfg.c
- net/wireless/core.c 2 additions, 0 deletionsnet/wireless/core.c
- net/wireless/nl80211.c 51 additions, 14 deletionsnet/wireless/nl80211.c
- net/wireless/trace.h 13 additions, 9 deletionsnet/wireless/trace.h
Loading
Please register or sign in to comment