OSDN Git Service

mac80211: mlme: save ssid info to ieee80211_bss_conf while assoc
authorWen Gong <wgong@codeaurora.org>
Mon, 7 Dec 2020 03:36:34 +0000 (11:36 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Dec 2020 12:20:05 +0000 (13:20 +0100)
commitb0140fda626e39900b8e85efefb427f18727151a
tree5b618598ff403609b670868189aae6ab2f26f949
parent44b72ca8163b8cf94384a11fdec716f5478411bf
mac80211: mlme: save ssid info to ieee80211_bss_conf while assoc

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 assoc, save ssid info to ieee80211_bss_conf, then ssid info
can be still access after assoc.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Link: https://lore.kernel.org/r/1607312195-3583-2-git-send-email-wgong@codeaurora.org
[reset on disassoc]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c