]> git.ipfire.org Git - thirdparty/iw.git/commit
scan: fix crash when driver doesn't report frame type
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Sat, 4 Aug 2018 20:31:11 +0000 (23:31 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 14 Aug 2018 11:34:08 +0000 (13:34 +0200)
commit86d907a3f1c05d3f11509b53c90c0ac2f0409f28
tree7235f983f253f2e9e670d8891625713be5945fb7
parent8a2dfd51ff9ea8f493933a9184c61a8ee7e73dd1
scan: fix crash when driver doesn't report frame type

If driver does not know what kind of frame has been received from BSS,
then it is possible to specify CFG80211_BSS_FTYPE_UNKNOWN
in cfg80211_inform_bss[_width].

In this case neither NL80211_BSS_BEACON_IES nor NL80211_BSS_PRESP_DATA
will be reported to userspace.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
scan.c