]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: fix double SW scan stop
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Sep 2022 14:12:55 +0000 (16:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 3 Sep 2022 15:03:29 +0000 (17:03 +0200)
commitde110750a7a0be701c3a08ad8e6f5f5c96bdf6d0
tree75cbd08225f89f86dd308ae21f84307d20869539
parentb73539c8ce73c582f9dbd1a7d71015e6c5f4e00c
wifi: mac80211: fix double SW scan stop

When we stop a not-yet-started scan, we erroneously call
into the driver, causing a sequence of sw_scan_start()
followed by sw_scan_complete() twice. This will cause a
warning in hwsim with next in line commit that validates
the address passed to wmediumd/virtio. Fix this by doing
the calls only if we were actually scanning.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/scan.c