]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI 802.11: change type of bssid in struct ieee80211_bss_conf
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 27 Aug 2022 14:48:09 +0000 (14:48 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 21 Sep 2022 11:46:45 +0000 (11:46 +0000)
commita6e2a4c3a48b42fbcf1fb653003cb9a76e35f11e
tree943b14a77a940016b421c4b6e37642880afb0aab
parentf36e7c583ae145acbbe0ce2dc6db405efc930ee6
LinuxKPI 802.11: change type of bssid in struct ieee80211_bss_conf

Enabling other driver code found that the bssid in
struct ieee80211_bss_conf is not an array but expected to be
a const pointer (const, != NULL checks).
Adjust accordingly in the header and in the LinuxKPI compat code.
There initialization now needs to be a static array always present
as we need a value before we will have a BSS (node in scan_to_auth)
as the mac80211 driver (*handlers) are expecting the pointer to be
not NULL (copying without checks).
This is a pre-req to enable d3 (CONFIG_PM[_SLEEP]) in the future.

Tested by: Tomoaki AOKI (junchoon dec.sakura.ne.jp)
Tested by: Berislav Purgar (bpurgar gmail.com)
Sponsored by: The FreeBSD Foundation

(cherry picked from commit caaa79c3f8c692b9822df74a2dc0a37e4ab33a3b)
sys/compat/linuxkpi/common/include/net/mac80211.h
sys/compat/linuxkpi/common/src/linux_80211.c