mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Avoid OBSS scan fail during SSR
When SSR is in progress, OBSS vendor scan request is rejected with reason code -EAGAIN, but hostapd doesn't consider this reason code and resulting in the failure of hotspot start. To fix this, return error code -EBUSY which makes hostapd to reissue OBSS scan. Change-Id: I71119f542011aebece5692347ceb99f4a65decef CRs-Fixed: 2443341
This commit is contained in:
parent
b5c73a475c
commit
105318b8b0
1 changed files with 9 additions and 1 deletions
|
|
@ -959,8 +959,16 @@ static int __wlan_hdd_cfg80211_vendor_scan(struct wiphy *wiphy,
|
|||
hdd_enter_dev(wdev->netdev);
|
||||
|
||||
ret = wlan_hdd_validate_context(hdd_ctx);
|
||||
if (0 != ret)
|
||||
if (ret) {
|
||||
/*
|
||||
* During SSR, if -EBUSY is returned then OBSS vendor scan is
|
||||
* not issued immediately.
|
||||
*/
|
||||
if (ret == -EAGAIN)
|
||||
return -EBUSY;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (wlan_cfg80211_nla_parse(tb, QCA_WLAN_VENDOR_ATTR_SCAN_MAX,
|
||||
data, data_len, scan_policy)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue