mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-10 14:02:43 +00:00
Change WI_RID_SCAN_RES compatibility interface to return the result after
active scan is completed just as WI_RID_READ_APS. This fixes wicontrol -L for ath(4) and awi(4) to have results even if the driver cannot associate any APs.
This commit is contained in:
parent
52ec752989
commit
e249fdbedb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124706
@ -301,7 +301,8 @@ ieee80211_cfgget(struct ifnet *ifp, u_long cmd, caddr_t data)
|
||||
break;
|
||||
case WI_RID_SCAN_RES: /* compatibility interface */
|
||||
if (ic->ic_opmode != IEEE80211_M_HOSTAP &&
|
||||
ic->ic_state == IEEE80211_S_SCAN) {
|
||||
ic->ic_state == IEEE80211_S_SCAN &&
|
||||
(ic->ic_flags & IEEE80211_F_ASCAN)) {
|
||||
error = EINPROGRESS;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user