mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 20:40:21 +01:00
wifi: allow explicit scans during AP/ADHOC modes
The user might still want to see the scan list, to decide whether to stop the hotspot/ADHOC connection and connect to something else. Allow explicit scans.
This commit is contained in:
parent
55767cf5c5
commit
ade9e17664
1 changed files with 4 additions and 1 deletions
|
|
@ -508,7 +508,10 @@ _scan_notify_allowed(NMDeviceWifi *self, NMTernary do_kickoff)
|
|||
/* something prohibits scanning. */
|
||||
} else if (NM_IN_SET(priv->mode, _NM_802_11_MODE_ADHOC, _NM_802_11_MODE_AP)) {
|
||||
/* Don't scan when a an AP or Ad-Hoc connection is active as it will
|
||||
* disrupt connected clients or peers. */
|
||||
* disrupt connected clients or peers.
|
||||
*
|
||||
* Explicit scans are allowed however. */
|
||||
explicit_allowed = TRUE;
|
||||
} else if (NM_IN_SET(state, NM_DEVICE_STATE_DISCONNECTED, NM_DEVICE_STATE_FAILED)) {
|
||||
/* Can always scan when disconnected */
|
||||
explicit_allowed = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue