NetworkManager/src/platform
Andrew Zaborowski c6456dd104 platform/wifi: Read frequency from NL80211_CMD_GET_INTERFACE
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.
2020-10-22 16:58:27 +02:00
..
linux format: manually replace remaining tabs with spaces and reformat 2020-09-29 09:12:27 +02:00
tests shared,platform: take pointer to NMEtherAddr in NM_ETHER_ADDR_FORMAT_VAL() macro 2020-10-13 12:56:25 +02:00
wifi platform/wifi: Read frequency from NL80211_CMD_GET_INTERFACE 2020-10-22 16:58:27 +02:00
wpan all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-fake-platform.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-fake-platform.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-linux-platform.c platform: use also statvfs() to check for udevd 2020-10-06 19:01:24 +02:00
nm-linux-platform.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-netlink.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-netlink.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-platform-private.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-platform-utils.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-platform-utils.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nm-platform.c platform: add NMPlatformIP4Address.ip4acd_not_ready flag 2020-10-13 13:39:01 +02:00
nm-platform.h platform: add NMPlatformIP4Address.ip4acd_not_ready flag 2020-10-13 13:39:01 +02:00
nmp-netns.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nmp-netns.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nmp-object.c all: use _NM_DUMMY_STRUCT_FOR_TRAILING_SEMICOLON define for trailing semicolon 2020-10-08 17:00:22 +02:00
nmp-object.h platform: reorder fields in NMPClass struct 2020-10-05 15:54:09 +02:00
nmp-rules-manager.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00
nmp-rules-manager.h all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00