cfg80211: consider existing DFS interfaces
It was possible to break interface combinations in the following way: combo 1: iftype = AP, num_ifaces = 2, num_chans = 2, combo 2: iftype = AP, num_ifaces = 1, num_chans = 1, radar = HT20 With the above interface combinations it was possible to: step 1. start AP on DFS channel by matching combo 2 step 2. start AP on non-DFS channel by matching combo 1 This was possible beacuse (step 2) did not consider if other interfaces require radar detection. The patch changes how cfg80211 tracks channels - instead of channel itself now a complete chandef is stored. Signed-off-by:Michal Kazior <michal.kazior@tieto.com> Signed-off-by:
Johannes Berg <johannes.berg@intel.com>
Showing
- include/net/cfg80211.h 3 additions, 5 deletionsinclude/net/cfg80211.h
- net/wireless/ap.c 1 addition, 1 deletionnet/wireless/ap.c
- net/wireless/chan.c 19 additions, 4 deletionsnet/wireless/chan.c
- net/wireless/core.h 2 additions, 1 deletionnet/wireless/core.h
- net/wireless/ibss.c 2 additions, 0 deletionsnet/wireless/ibss.c
- net/wireless/mesh.c 3 additions, 3 deletionsnet/wireless/mesh.c
- net/wireless/mlme.c 1 addition, 1 deletionnet/wireless/mlme.c
- net/wireless/nl80211.c 3 additions, 3 deletionsnet/wireless/nl80211.c
- net/wireless/util.c 1 addition, 1 deletionnet/wireless/util.c
Loading
Please register or sign in to comment