diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-07-09 18:57:28 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-12 12:10:42 +0200 |
commit | d811b3d5566f1441b321a1219c260124b209e0bd (patch) | |
tree | 86cd54ea8eaeb899d56496bd1f4d6b04a8ff38bb /net/mac80211/ieee80211_i.h | |
parent | nl80211: move scan API to wdev (diff) | |
download | linux-d811b3d5566f1441b321a1219c260124b209e0bd.tar.xz linux-d811b3d5566f1441b321a1219c260124b209e0bd.zip |
mac80211: fix invalid band deref building preq IEs
The function building probe-request IEs does not validate the band is
supported before dereferencing it. This can result in a panic when
all bands are traversed, as done during sched-scan start.
Warn when this happens and return an empty probe request. Also fix
sched-scan to not waste memory on unsupported bands.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
0 files changed, 0 insertions, 0 deletions