wifi: cfg80211: handle BSS data contained in ML probe responses
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 18 Jun 2023 18:49:53 +0000 (21:49 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jun 2023 10:08:28 +0000 (12:08 +0200)
commit2481b5da9c6b2ee1fde55a1c29eb2ca377145a10
treef49772e06e54a53a60f042e875b56aa6af19299b
parentdc92e54c30c4bc9d30e674a445dfe1afdca991cf
wifi: cfg80211: handle BSS data contained in ML probe responses

The basic multi-link element within an multi-link probe response will
contain full information about BSSes that are part of an MLD AP. This
BSS information may be used to associate with a link of an MLD AP
without having received a beacon from the BSS itself.

This patch adds parsing of the data and adding/updating the BSS using
the received elements. Doing this means that userspace can discover the
BSSes using an ML probe request and request association on these links.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230618214436.29593bd0ae1f.Ic9a67b8f022360aa202b870a932897a389171b14@changeid
[swap loop conditions smatch complained about]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c