Change return code semantics of start_scan_locked(). Instead of reporting
if a scan is running, report if a scan has been started. The return value itself is not (yet) used anywhere in the tree and it is also not exported to userspace. MFC after: 1 month
This commit is contained in:
parent
a272741053
commit
27612ff8c9
@ -434,12 +434,13 @@ start_scan_locked(const struct ieee80211_scanner *scan,
|
||||
ic->ic_flags |= IEEE80211_F_SCAN;
|
||||
ieee80211_runtask(ic, &SCAN_PRIVATE(ss)->ss_scan_task);
|
||||
}
|
||||
return 1;
|
||||
} else {
|
||||
IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN,
|
||||
"%s: %s scan already in progress\n", __func__,
|
||||
ss->ss_flags & IEEE80211_SCAN_ACTIVE ? "active" : "passive");
|
||||
}
|
||||
return (ic->ic_flags & IEEE80211_F_SCAN);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user