]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: make bss_param_ch_cnt available for the low level driver
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 7 Oct 2024 12:00:48 +0000 (15:00 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Oct 2024 14:43:12 +0000 (16:43 +0200)
commite21dd758cf4c51d508e6665b653c5836103d1027
tree58b1c933507d2e93c43c4a0482b6faed9ae72e2a
parent9c5f2c7eeb585834f8dadb552b4fd811dd2dee6f
wifi: mac80211: make bss_param_ch_cnt available for the low level driver

Drivers may need to track this. Make it available for them, and maintain
the value when beacons are received.
When link X receives a beacon, iterate the RNR elements and update all
the links with their respective data.
Track the link id that updated the data so that each link can know
whether the update came from its own beacon or from another link.
In case, the update came from the link's own beacon, always update the
updater link id.
The purpose is to let the low level driver know if a link is losing its
beacons. If link X is losing its beacons, it can still track the
bss_param_ch_cnt and know where the update came from.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241007144851.e2d8d1a722ad.I04b883daba2cd48e5730659eb62ca1614c899cbb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c