[PATCH 2/2] ath10k: pass the ssid info to get the correct bss entity

2020-12-06 Thread Wen Gong
When connect to an AP with WPA mode, ath10k need to set need_ptk_4_way to firmware in WMI_PEER_ASSOC_CMD, then the data path is disallow in firmware, it will be allowed untill firmware finish the 4 way handshake. It failed with a test case with below steps: 1. configure AP with WPA mode with

[PATCH 0/2] mac80211/ath10k: save ssid info for STATION mode

2020-12-06 Thread Wen Gong
save the ssid info for STATION mode which could be used for ath10k to get the corret/exact cfg80211_bss. Wen Gong (2): mac80211: save ssid info to ieee80211_bss_conf while assoc ath10k: pass the ssid info to get the correct bss entity drivers/net/wireless/ath/ath10k/mac.c | 3 ++-

[PATCH 1/2] mac80211: save ssid info to ieee80211_bss_conf while assoc

2020-12-06 Thread Wen Gong
The ssid info of ieee80211_bss_conf is filled in ieee80211_start_ap() for AP mode. For STATION mode, it is empty, save the info from struct ieee80211_mgd_assoc_data, the struct ieee80211_mgd_assoc_data will be freed after assoc, so the ssid info of ieee80211_mgd_assoc_data can not access after