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)
commite9da68ddea6030b214dfe420564d48bb579f58fc
treee0dc9fc25179312da2fe6bf9d179d6ccf1c37dc9
parentc0a0189d827de189b15d07d0d9776b3965d59d8c
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