Skip to content
Commit 09417723 authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: cfg80211: wext: set ssids=NULL for passive scans



In nl80211, we always set the ssids of a scan request to
NULL when n_ssids==0 (passive scan). Drivers have relied
on this behaviour in the past, so we fixed it in 6 GHz
scan requests as well, and added a warning so we'd have
assurance the API would always be called that way.

syzbot found that wext doesn't ensure that, so we reach
the check and trigger the warning. Fix the wext code to
set the ssids pointer to NULL when there are none.

Reported-by: default avatar <syzbot+cd6135193ba6bb9ad158@syzkaller.appspotmail.com>
Fixes: f7a8b10b

 ("wifi: cfg80211: fix 6 GHz scan request building")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 819bda58
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment