aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2022-08-27 14:48:09 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2022-08-27 14:54:02 +0000
commitcaaa79c3f8c692b9822df74a2dc0a37e4ab33a3b (patch)
tree61f1b7d2680ca2cf8e6abb66c1a0dbb0f1e001ad /sys/compat/linuxkpi/common/include
parentce99e4fa4442ed7d1a7802612557b23173dd5781 (diff)
downloadsrc-caaa79c3f8c692b9822df74a2dc0a37e4ab33a3b.tar.gz
src-caaa79c3f8c692b9822df74a2dc0a37e4ab33a3b.zip
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 MFC after: 3 days
Diffstat (limited to 'sys/compat/linuxkpi/common/include')
-rw-r--r--sys/compat/linuxkpi/common/include/net/mac80211.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h
index 4320edc90eba..13ae7bb99376 100644
--- a/sys/compat/linuxkpi/common/include/net/mac80211.h
+++ b/sys/compat/linuxkpi/common/include/net/mac80211.h
@@ -215,7 +215,7 @@ struct mac80211_fils_discovery {
struct ieee80211_bss_conf {
/* TODO FIXME */
- uint8_t bssid[ETH_ALEN];
+ const uint8_t *bssid;
uint8_t transmitter_bssid[ETH_ALEN];
struct ieee80211_ftm_responder_params *ftmr_params;
struct ieee80211_p2p_noa_attr p2p_noa_attr;