]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: allow hardware scan to fall back to software
authorJohannes Berg <johannes.berg@intel.com>
Thu, 18 Oct 2018 08:35:47 +0000 (10:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 10:37:04 +0000 (11:37 +0100)
commit36f67bf706b88c5d788c08fd75a265142050ba1d
treee0dc9fc25179312da2fe6bf9d179d6ccf1c37dc9
parent5bc62b15bb9bb742eef9e29c658ffe3ca7441f51
mac80211: allow hardware scan to fall back to software

In some cases, like in the rsi driver hardware scan offload, there
may be scenarios in which hardware scan might not be available or
desirable.

Allow drivers to cope with this by letting them fall back to software
scan by returning the special value 1 from the hardware scan method.

Requested-by: Sushant Kumar Mishra <sushant2k1513@gmail.com>
Requested-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/scan.c