aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/scan.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-08-12 15:01:28 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-08-26 05:16:02 -0400
commit5bc8c1f2b070bab82ed738f98ecfac725e33c57f (patch)
treecc5d73214736192a08d1478da050459a360bf3fd /drivers/net/wireless/mwifiex/scan.c
parent0e227084aee36b3ba27b4fc9cd9e425be6ce2ab8 (diff)
cfg80211: allow passing frame type to cfg80211_inform_bss()
When using the cfg80211_inform_bss[_width]() functions drivers cannot currently indicate whether the data was received in a beacon or probe response. Fix that by passing a new enum that indicates such (or unknown). For good measure, use it in ath6kl. Acked-by: Kalle Valo <kvalo@qca.qualcomm.com> [ath6kl] Acked-by: Arend van Spriel <arend@broadcom.com> [brcmfmac] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/scan.c')
-rw-r--r--drivers/net/wireless/mwifiex/scan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c
index dee717a19ddb..195ef0ca343f 100644
--- a/drivers/net/wireless/mwifiex/scan.c
+++ b/drivers/net/wireless/mwifiex/scan.c
@@ -1719,7 +1719,8 @@ mwifiex_parse_single_response_buf(struct mwifiex_private *priv, u8 **bss_info,
1719 1719
1720 if (chan && !(chan->flags & IEEE80211_CHAN_DISABLED)) { 1720 if (chan && !(chan->flags & IEEE80211_CHAN_DISABLED)) {
1721 bss = cfg80211_inform_bss(priv->wdev->wiphy, 1721 bss = cfg80211_inform_bss(priv->wdev->wiphy,
1722 chan, bssid, timestamp, 1722 chan, CFG80211_BSS_FTYPE_UNKNOWN,
1723 bssid, timestamp,
1723 cap_info_bitmap, beacon_period, 1724 cap_info_bitmap, beacon_period,
1724 ie_buf, ie_len, rssi, GFP_KERNEL); 1725 ie_buf, ie_len, rssi, GFP_KERNEL);
1725 bss_priv = (struct mwifiex_bss_priv *)bss->priv; 1726 bss_priv = (struct mwifiex_bss_priv *)bss->priv;