diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 462c71067bfb..e9ab9a3fbe9c 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -780,6 +780,7 @@ static int mwifiex_cfg80211_inform_ibss_bss(struct mwifiex_private *priv) | |||
780 | { | 780 | { |
781 | struct ieee80211_channel *chan; | 781 | struct ieee80211_channel *chan; |
782 | struct mwifiex_bss_info bss_info; | 782 | struct mwifiex_bss_info bss_info; |
783 | struct cfg80211_bss *bss; | ||
783 | int ie_len; | 784 | int ie_len; |
784 | u8 ie_buf[IEEE80211_MAX_SSID_LEN + sizeof(struct ieee_types_header)]; | 785 | u8 ie_buf[IEEE80211_MAX_SSID_LEN + sizeof(struct ieee_types_header)]; |
785 | enum ieee80211_band band; | 786 | enum ieee80211_band band; |
@@ -800,9 +801,10 @@ static int mwifiex_cfg80211_inform_ibss_bss(struct mwifiex_private *priv) | |||
800 | ieee80211_channel_to_frequency(bss_info.bss_chan, | 801 | ieee80211_channel_to_frequency(bss_info.bss_chan, |
801 | band)); | 802 | band)); |
802 | 803 | ||
803 | cfg80211_inform_bss(priv->wdev->wiphy, chan, | 804 | bss = cfg80211_inform_bss(priv->wdev->wiphy, chan, |
804 | bss_info.bssid, 0, WLAN_CAPABILITY_IBSS, | 805 | bss_info.bssid, 0, WLAN_CAPABILITY_IBSS, |
805 | 0, ie_buf, ie_len, 0, GFP_KERNEL); | 806 | 0, ie_buf, ie_len, 0, GFP_KERNEL); |
807 | cfg80211_put_bss(bss); | ||
806 | memcpy(priv->cfg_bssid, bss_info.bssid, ETH_ALEN); | 808 | memcpy(priv->cfg_bssid, bss_info.bssid, ETH_ALEN); |
807 | 809 | ||
808 | return 0; | 810 | return 0; |