mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 20:00:09 +01:00
As an optimization, implement wifi_nl80211_get_freq() using the GET_INTERFACE nl8022 command instead of the GET_SCAN dump. The GET_SCAN dump can be over 10kB of data that the kernel has to build and we have to parse. Additionally the GET_SCAN dump is not guaranteed to contain the currently-connected BSS if there was no recent scan (30s), or if the recent scan missed the beacon from the current BSS, or if the recent scan was for a subset of channels/SSIDs/BSSIDs etc. and the last full scan was already flushed. Scan results are flushed after (I think) 30 seconds or if a new scan has the flush flag set. In IWD we do occasionally do partial scans (on a subset of channels or for a specific SSID) with the flush flag. In that case the previous wifi_nl80211_get_freq() logic would probably return 0. |
||
|---|---|---|
| .. | ||
| linux | ||
| tests | ||
| wifi | ||
| wpan | ||
| nm-fake-platform.c | ||
| nm-fake-platform.h | ||
| nm-linux-platform.c | ||
| nm-linux-platform.h | ||
| nm-netlink.c | ||
| nm-netlink.h | ||
| nm-platform-private.h | ||
| nm-platform-utils.c | ||
| nm-platform-utils.h | ||
| nm-platform.c | ||
| nm-platform.h | ||
| nmp-netns.c | ||
| nmp-netns.h | ||
| nmp-object.c | ||
| nmp-object.h | ||
| nmp-rules-manager.c | ||
| nmp-rules-manager.h | ||