aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rndis_wlan.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/rndis_wlan.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/rndis_wlan.c')
-rw-r--r--drivers/net/wireless/rndis_wlan.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
index d2a9a08210be..1a4facd1fbf3 100644
--- a/drivers/net/wireless/rndis_wlan.c
+++ b/drivers/net/wireless/rndis_wlan.c
@@ -2022,9 +2022,10 @@ static bool rndis_bss_info_update(struct usbnet *usbdev,
2022 capability = le16_to_cpu(fixed->capabilities); 2022 capability = le16_to_cpu(fixed->capabilities);
2023 beacon_interval = le16_to_cpu(fixed->beacon_interval); 2023 beacon_interval = le16_to_cpu(fixed->beacon_interval);
2024 2024
2025 bss = cfg80211_inform_bss(priv->wdev.wiphy, channel, bssid->mac, 2025 bss = cfg80211_inform_bss(priv->wdev.wiphy, channel,
2026 timestamp, capability, beacon_interval, ie, ie_len, signal, 2026 CFG80211_BSS_FTYPE_UNKNOWN, bssid->mac,
2027 GFP_KERNEL); 2027 timestamp, capability, beacon_interval,
2028 ie, ie_len, signal, GFP_KERNEL);
2028 cfg80211_put_bss(priv->wdev.wiphy, bss); 2029 cfg80211_put_bss(priv->wdev.wiphy, bss);
2029 2030
2030 return (bss != NULL); 2031 return (bss != NULL);
@@ -2711,9 +2712,10 @@ static void rndis_wlan_craft_connected_bss(struct usbnet *usbdev, u8 *bssid,
2711 bssid, (u32)timestamp, capability, beacon_period, ie_len, 2712 bssid, (u32)timestamp, capability, beacon_period, ie_len,
2712 ssid.essid, signal); 2713 ssid.essid, signal);
2713 2714
2714 bss = cfg80211_inform_bss(priv->wdev.wiphy, channel, bssid, 2715 bss = cfg80211_inform_bss(priv->wdev.wiphy, channel,
2715 timestamp, capability, beacon_period, ie_buf, ie_len, 2716 CFG80211_BSS_FTYPE_UNKNOWN, bssid,
2716 signal, GFP_KERNEL); 2717 timestamp, capability, beacon_period,
2718 ie_buf, ie_len, signal, GFP_KERNEL);
2717 cfg80211_put_bss(priv->wdev.wiphy, bss); 2719 cfg80211_put_bss(priv->wdev.wiphy, bss);
2718} 2720}
2719 2721