diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-04-02 02:26:51 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-04-02 02:26:51 -0400 |
commit | b916693a7731670429609854c32de1a71775d070 (patch) | |
tree | 1007e5aedd88f94bdb6a55e0f7b4b8e3aee7c29d /drivers/net/wireless | |
parent | 21023b1e7f9862015fd8c91d5619217da8d9a06a (diff) | |
parent | 2c44be81f0fc147eed9dc63e2601318b2c007aeb (diff) |
Merge tag 'mac80211-next-for-davem-2015-03-30' into iwlwifi-next
Lots of updates for net-next; along with the usual flurry
of small fixes, cleanups and internal features we have:
* VHT support for TDLS and IBSS (conditional on drivers though)
* first TX performance improvements (the biggest will come later)
* many suspend/resume (race) fixes
* name_assign_type support from Tom Gundersen
Diffstat (limited to 'drivers/net/wireless')
21 files changed, 145 insertions, 51 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index d6d2f0f00caa..d372ebfd933d 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c | |||
@@ -1386,7 +1386,8 @@ static void ath10k_peer_assoc_h_crypto(struct ath10k *ar, | |||
1386 | lockdep_assert_held(&ar->conf_mutex); | 1386 | lockdep_assert_held(&ar->conf_mutex); |
1387 | 1387 | ||
1388 | bss = cfg80211_get_bss(ar->hw->wiphy, ar->hw->conf.chandef.chan, | 1388 | bss = cfg80211_get_bss(ar->hw->wiphy, ar->hw->conf.chandef.chan, |
1389 | info->bssid, NULL, 0, 0, 0); | 1389 | info->bssid, NULL, 0, IEEE80211_BSS_TYPE_ANY, |
1390 | IEEE80211_PRIVACY_ANY); | ||
1390 | if (bss) { | 1391 | if (bss) { |
1391 | const struct cfg80211_bss_ies *ies; | 1392 | const struct cfg80211_bss_ies *ies; |
1392 | 1393 | ||
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 85da63a67faf..d740f14f3539 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -686,20 +686,21 @@ ath6kl_add_bss_if_needed(struct ath6kl_vif *vif, | |||
686 | { | 686 | { |
687 | struct ath6kl *ar = vif->ar; | 687 | struct ath6kl *ar = vif->ar; |
688 | struct cfg80211_bss *bss; | 688 | struct cfg80211_bss *bss; |
689 | u16 cap_mask, cap_val; | 689 | u16 cap_val; |
690 | enum ieee80211_bss_type bss_type; | ||
690 | u8 *ie; | 691 | u8 *ie; |
691 | 692 | ||
692 | if (nw_type & ADHOC_NETWORK) { | 693 | if (nw_type & ADHOC_NETWORK) { |
693 | cap_mask = WLAN_CAPABILITY_IBSS; | ||
694 | cap_val = WLAN_CAPABILITY_IBSS; | 694 | cap_val = WLAN_CAPABILITY_IBSS; |
695 | bss_type = IEEE80211_BSS_TYPE_IBSS; | ||
695 | } else { | 696 | } else { |
696 | cap_mask = WLAN_CAPABILITY_ESS; | ||
697 | cap_val = WLAN_CAPABILITY_ESS; | 697 | cap_val = WLAN_CAPABILITY_ESS; |
698 | bss_type = IEEE80211_BSS_TYPE_ESS; | ||
698 | } | 699 | } |
699 | 700 | ||
700 | bss = cfg80211_get_bss(ar->wiphy, chan, bssid, | 701 | bss = cfg80211_get_bss(ar->wiphy, chan, bssid, |
701 | vif->ssid, vif->ssid_len, | 702 | vif->ssid, vif->ssid_len, |
702 | cap_mask, cap_val); | 703 | bss_type, IEEE80211_PRIVACY_ANY); |
703 | if (bss == NULL) { | 704 | if (bss == NULL) { |
704 | /* | 705 | /* |
705 | * Since cfg80211 may not yet know about the BSS, | 706 | * Since cfg80211 may not yet know about the BSS, |
@@ -1495,6 +1496,7 @@ static int ath6kl_cfg80211_set_power_mgmt(struct wiphy *wiphy, | |||
1495 | 1496 | ||
1496 | static struct wireless_dev *ath6kl_cfg80211_add_iface(struct wiphy *wiphy, | 1497 | static struct wireless_dev *ath6kl_cfg80211_add_iface(struct wiphy *wiphy, |
1497 | const char *name, | 1498 | const char *name, |
1499 | unsigned char name_assign_type, | ||
1498 | enum nl80211_iftype type, | 1500 | enum nl80211_iftype type, |
1499 | u32 *flags, | 1501 | u32 *flags, |
1500 | struct vif_params *params) | 1502 | struct vif_params *params) |
@@ -1513,7 +1515,7 @@ static struct wireless_dev *ath6kl_cfg80211_add_iface(struct wiphy *wiphy, | |||
1513 | return ERR_PTR(-EINVAL); | 1515 | return ERR_PTR(-EINVAL); |
1514 | } | 1516 | } |
1515 | 1517 | ||
1516 | wdev = ath6kl_interface_add(ar, name, type, if_idx, nw_type); | 1518 | wdev = ath6kl_interface_add(ar, name, name_assign_type, type, if_idx, nw_type); |
1517 | if (!wdev) | 1519 | if (!wdev) |
1518 | return ERR_PTR(-ENOMEM); | 1520 | return ERR_PTR(-ENOMEM); |
1519 | 1521 | ||
@@ -3633,13 +3635,14 @@ void ath6kl_cfg80211_vif_cleanup(struct ath6kl_vif *vif) | |||
3633 | } | 3635 | } |
3634 | 3636 | ||
3635 | struct wireless_dev *ath6kl_interface_add(struct ath6kl *ar, const char *name, | 3637 | struct wireless_dev *ath6kl_interface_add(struct ath6kl *ar, const char *name, |
3638 | unsigned char name_assign_type, | ||
3636 | enum nl80211_iftype type, | 3639 | enum nl80211_iftype type, |
3637 | u8 fw_vif_idx, u8 nw_type) | 3640 | u8 fw_vif_idx, u8 nw_type) |
3638 | { | 3641 | { |
3639 | struct net_device *ndev; | 3642 | struct net_device *ndev; |
3640 | struct ath6kl_vif *vif; | 3643 | struct ath6kl_vif *vif; |
3641 | 3644 | ||
3642 | ndev = alloc_netdev(sizeof(*vif), name, NET_NAME_UNKNOWN, ether_setup); | 3645 | ndev = alloc_netdev(sizeof(*vif), name, name_assign_type, ether_setup); |
3643 | if (!ndev) | 3646 | if (!ndev) |
3644 | return NULL; | 3647 | return NULL; |
3645 | 3648 | ||
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.h b/drivers/net/wireless/ath/ath6kl/cfg80211.h index b59becd91aea..5aa57a7639bf 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.h +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.h | |||
@@ -25,6 +25,7 @@ enum ath6kl_cfg_suspend_mode { | |||
25 | }; | 25 | }; |
26 | 26 | ||
27 | struct wireless_dev *ath6kl_interface_add(struct ath6kl *ar, const char *name, | 27 | struct wireless_dev *ath6kl_interface_add(struct ath6kl *ar, const char *name, |
28 | unsigned char name_assign_type, | ||
28 | enum nl80211_iftype type, | 29 | enum nl80211_iftype type, |
29 | u8 fw_vif_idx, u8 nw_type); | 30 | u8 fw_vif_idx, u8 nw_type); |
30 | void ath6kl_cfg80211_ch_switch_notify(struct ath6kl_vif *vif, int freq, | 31 | void ath6kl_cfg80211_ch_switch_notify(struct ath6kl_vif *vif, int freq, |
diff --git a/drivers/net/wireless/ath/ath6kl/core.c b/drivers/net/wireless/ath/ath6kl/core.c index 0df74b245af4..4ec02cea0f43 100644 --- a/drivers/net/wireless/ath/ath6kl/core.c +++ b/drivers/net/wireless/ath/ath6kl/core.c | |||
@@ -211,8 +211,8 @@ int ath6kl_core_init(struct ath6kl *ar, enum ath6kl_htc_type htc_type) | |||
211 | rtnl_lock(); | 211 | rtnl_lock(); |
212 | 212 | ||
213 | /* Add an initial station interface */ | 213 | /* Add an initial station interface */ |
214 | wdev = ath6kl_interface_add(ar, "wlan%d", NL80211_IFTYPE_STATION, 0, | 214 | wdev = ath6kl_interface_add(ar, "wlan%d", NET_NAME_ENUM, |
215 | INFRA_NETWORK); | 215 | NL80211_IFTYPE_STATION, 0, INFRA_NETWORK); |
216 | 216 | ||
217 | rtnl_unlock(); | 217 | rtnl_unlock(); |
218 | 218 | ||
diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c index 2d5ea21be47e..adfd815e3f7d 100644 --- a/drivers/net/wireless/ath/wil6210/cfg80211.c +++ b/drivers/net/wireless/ath/wil6210/cfg80211.c | |||
@@ -395,7 +395,7 @@ static int wil_cfg80211_connect(struct wiphy *wiphy, | |||
395 | 395 | ||
396 | bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, | 396 | bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, |
397 | sme->ssid, sme->ssid_len, | 397 | sme->ssid, sme->ssid_len, |
398 | WLAN_CAPABILITY_ESS, WLAN_CAPABILITY_ESS); | 398 | IEEE80211_BSS_TYPE_ESS, IEEE80211_PRIVACY_ANY); |
399 | if (!bss) { | 399 | if (!bss) { |
400 | wil_err(wil, "Unable to find BSS\n"); | 400 | wil_err(wil, "Unable to find BSS\n"); |
401 | return -ENOENT; | 401 | return -ENOENT; |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c index b59b8c6c42ab..bcbccba4cdbf 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | |||
@@ -625,6 +625,7 @@ static bool brcmf_is_ibssmode(struct brcmf_cfg80211_vif *vif) | |||
625 | 625 | ||
626 | static struct wireless_dev *brcmf_cfg80211_add_iface(struct wiphy *wiphy, | 626 | static struct wireless_dev *brcmf_cfg80211_add_iface(struct wiphy *wiphy, |
627 | const char *name, | 627 | const char *name, |
628 | unsigned char name_assign_type, | ||
628 | enum nl80211_iftype type, | 629 | enum nl80211_iftype type, |
629 | u32 *flags, | 630 | u32 *flags, |
630 | struct vif_params *params) | 631 | struct vif_params *params) |
@@ -648,7 +649,7 @@ static struct wireless_dev *brcmf_cfg80211_add_iface(struct wiphy *wiphy, | |||
648 | case NL80211_IFTYPE_P2P_CLIENT: | 649 | case NL80211_IFTYPE_P2P_CLIENT: |
649 | case NL80211_IFTYPE_P2P_GO: | 650 | case NL80211_IFTYPE_P2P_GO: |
650 | case NL80211_IFTYPE_P2P_DEVICE: | 651 | case NL80211_IFTYPE_P2P_DEVICE: |
651 | wdev = brcmf_p2p_add_vif(wiphy, name, type, flags, params); | 652 | wdev = brcmf_p2p_add_vif(wiphy, name, name_assign_type, type, flags, params); |
652 | if (!IS_ERR(wdev)) | 653 | if (!IS_ERR(wdev)) |
653 | brcmf_cfg80211_update_proto_addr_mode(wdev); | 654 | brcmf_cfg80211_update_proto_addr_mode(wdev); |
654 | return wdev; | 655 | return wdev; |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c index effb48ebd864..b44ea85dd9db 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c | |||
@@ -2246,11 +2246,13 @@ static void brcmf_p2p_delete_p2pdev(struct brcmf_p2p_info *p2p, | |||
2246 | * | 2246 | * |
2247 | * @wiphy: wiphy device of new interface. | 2247 | * @wiphy: wiphy device of new interface. |
2248 | * @name: name of the new interface. | 2248 | * @name: name of the new interface. |
2249 | * @name_assign_type: origin of the interface name | ||
2249 | * @type: nl80211 interface type. | 2250 | * @type: nl80211 interface type. |
2250 | * @flags: not used. | 2251 | * @flags: not used. |
2251 | * @params: contains mac address for P2P device. | 2252 | * @params: contains mac address for P2P device. |
2252 | */ | 2253 | */ |
2253 | struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name, | 2254 | struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name, |
2255 | unsigned char name_assign_type, | ||
2254 | enum nl80211_iftype type, u32 *flags, | 2256 | enum nl80211_iftype type, u32 *flags, |
2255 | struct vif_params *params) | 2257 | struct vif_params *params) |
2256 | { | 2258 | { |
@@ -2310,6 +2312,7 @@ struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name, | |||
2310 | } | 2312 | } |
2311 | 2313 | ||
2312 | strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1); | 2314 | strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1); |
2315 | ifp->ndev->name_assign_type = name_assign_type; | ||
2313 | err = brcmf_net_attach(ifp, true); | 2316 | err = brcmf_net_attach(ifp, true); |
2314 | if (err) { | 2317 | if (err) { |
2315 | brcmf_err("Registering netdevice failed\n"); | 2318 | brcmf_err("Registering netdevice failed\n"); |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/p2p.h b/drivers/net/wireless/brcm80211/brcmfmac/p2p.h index 6821b26224be..872f382d9e49 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/p2p.h +++ b/drivers/net/wireless/brcm80211/brcmfmac/p2p.h | |||
@@ -149,6 +149,7 @@ struct brcmf_p2p_info { | |||
149 | s32 brcmf_p2p_attach(struct brcmf_cfg80211_info *cfg); | 149 | s32 brcmf_p2p_attach(struct brcmf_cfg80211_info *cfg); |
150 | void brcmf_p2p_detach(struct brcmf_p2p_info *p2p); | 150 | void brcmf_p2p_detach(struct brcmf_p2p_info *p2p); |
151 | struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name, | 151 | struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name, |
152 | unsigned char name_assign_type, | ||
152 | enum nl80211_iftype type, u32 *flags, | 153 | enum nl80211_iftype type, u32 *flags, |
153 | struct vif_params *params); | 154 | struct vif_params *params); |
154 | int brcmf_p2p_del_vif(struct wiphy *wiphy, struct wireless_dev *wdev); | 155 | int brcmf_p2p_del_vif(struct wiphy *wiphy, struct wireless_dev *wdev); |
diff --git a/drivers/net/wireless/cw1200/sta.c b/drivers/net/wireless/cw1200/sta.c index 4a47c7f8a246..1b58b2e2a538 100644 --- a/drivers/net/wireless/cw1200/sta.c +++ b/drivers/net/wireless/cw1200/sta.c | |||
@@ -1240,8 +1240,8 @@ static void cw1200_do_join(struct cw1200_common *priv) | |||
1240 | 1240 | ||
1241 | bssid = priv->vif->bss_conf.bssid; | 1241 | bssid = priv->vif->bss_conf.bssid; |
1242 | 1242 | ||
1243 | bss = cfg80211_get_bss(priv->hw->wiphy, priv->channel, | 1243 | bss = cfg80211_get_bss(priv->hw->wiphy, priv->channel, bssid, NULL, 0, |
1244 | bssid, NULL, 0, 0, 0); | 1244 | IEEE80211_BSS_TYPE_ANY, IEEE80211_PRIVACY_ANY); |
1245 | 1245 | ||
1246 | if (!bss && !conf->ibss_joined) { | 1246 | if (!bss && !conf->ibss_joined) { |
1247 | wsm_unlock_tx(priv); | 1247 | wsm_unlock_tx(priv); |
diff --git a/drivers/net/wireless/ipw2x00/Kconfig b/drivers/net/wireless/ipw2x00/Kconfig index 21de4fe6cf2d..d6ec44d7a391 100644 --- a/drivers/net/wireless/ipw2x00/Kconfig +++ b/drivers/net/wireless/ipw2x00/Kconfig | |||
@@ -66,7 +66,7 @@ config IPW2100_DEBUG | |||
66 | config IPW2200 | 66 | config IPW2200 |
67 | tristate "Intel PRO/Wireless 2200BG and 2915ABG Network Connection" | 67 | tristate "Intel PRO/Wireless 2200BG and 2915ABG Network Connection" |
68 | depends on PCI && CFG80211 | 68 | depends on PCI && CFG80211 |
69 | select CFG80211_WEXT | 69 | select CFG80211_WEXT_EXPORT |
70 | select WIRELESS_EXT | 70 | select WIRELESS_EXT |
71 | select WEXT_SPY | 71 | select WEXT_SPY |
72 | select WEXT_PRIV | 72 | select WEXT_PRIV |
diff --git a/drivers/net/wireless/iwlwifi/dvm/mac80211.c b/drivers/net/wireless/iwlwifi/dvm/mac80211.c index cceb026e0793..5abd62ed8cb4 100644 --- a/drivers/net/wireless/iwlwifi/dvm/mac80211.c +++ b/drivers/net/wireless/iwlwifi/dvm/mac80211.c | |||
@@ -1130,20 +1130,23 @@ done: | |||
1130 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 1130 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
1131 | } | 1131 | } |
1132 | 1132 | ||
1133 | static void iwlagn_mac_rssi_callback(struct ieee80211_hw *hw, | 1133 | static void iwlagn_mac_event_callback(struct ieee80211_hw *hw, |
1134 | struct ieee80211_vif *vif, | 1134 | struct ieee80211_vif *vif, |
1135 | enum ieee80211_rssi_event rssi_event) | 1135 | const struct ieee80211_event *event) |
1136 | { | 1136 | { |
1137 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1137 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1138 | 1138 | ||
1139 | if (event->type != RSSI_EVENT) | ||
1140 | return; | ||
1141 | |||
1139 | IWL_DEBUG_MAC80211(priv, "enter\n"); | 1142 | IWL_DEBUG_MAC80211(priv, "enter\n"); |
1140 | mutex_lock(&priv->mutex); | 1143 | mutex_lock(&priv->mutex); |
1141 | 1144 | ||
1142 | if (priv->lib->bt_params && | 1145 | if (priv->lib->bt_params && |
1143 | priv->lib->bt_params->advanced_bt_coexist) { | 1146 | priv->lib->bt_params->advanced_bt_coexist) { |
1144 | if (rssi_event == RSSI_EVENT_LOW) | 1147 | if (event->u.rssi.data == RSSI_EVENT_LOW) |
1145 | priv->bt_enable_pspoll = true; | 1148 | priv->bt_enable_pspoll = true; |
1146 | else if (rssi_event == RSSI_EVENT_HIGH) | 1149 | else if (event->u.rssi.data == RSSI_EVENT_HIGH) |
1147 | priv->bt_enable_pspoll = false; | 1150 | priv->bt_enable_pspoll = false; |
1148 | 1151 | ||
1149 | iwlagn_send_advance_bt_config(priv); | 1152 | iwlagn_send_advance_bt_config(priv); |
@@ -1614,7 +1617,7 @@ const struct ieee80211_ops iwlagn_hw_ops = { | |||
1614 | .channel_switch = iwlagn_mac_channel_switch, | 1617 | .channel_switch = iwlagn_mac_channel_switch, |
1615 | .flush = iwlagn_mac_flush, | 1618 | .flush = iwlagn_mac_flush, |
1616 | .tx_last_beacon = iwlagn_mac_tx_last_beacon, | 1619 | .tx_last_beacon = iwlagn_mac_tx_last_beacon, |
1617 | .rssi_callback = iwlagn_mac_rssi_callback, | 1620 | .event_callback = iwlagn_mac_event_callback, |
1618 | .set_tim = iwlagn_mac_set_tim, | 1621 | .set_tim = iwlagn_mac_set_tim, |
1619 | }; | 1622 | }; |
1620 | 1623 | ||
diff --git a/drivers/net/wireless/iwlwifi/mvm/coex.c b/drivers/net/wireless/iwlwifi/mvm/coex.c index 770b0e2a9b46..13a0a03158de 100644 --- a/drivers/net/wireless/iwlwifi/mvm/coex.c +++ b/drivers/net/wireless/iwlwifi/mvm/coex.c | |||
@@ -807,7 +807,7 @@ static void iwl_mvm_bt_rssi_iterator(void *_data, u8 *mac, | |||
807 | } | 807 | } |
808 | 808 | ||
809 | void iwl_mvm_bt_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 809 | void iwl_mvm_bt_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
810 | enum ieee80211_rssi_event rssi_event) | 810 | enum ieee80211_rssi_event_data rssi_event) |
811 | { | 811 | { |
812 | struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); | 812 | struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); |
813 | struct iwl_bt_iterator_data data = { | 813 | struct iwl_bt_iterator_data data = { |
diff --git a/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c b/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c index 4f303639147b..d954591e0be5 100644 --- a/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c +++ b/drivers/net/wireless/iwlwifi/mvm/coex_legacy.c | |||
@@ -1128,7 +1128,7 @@ static void iwl_mvm_bt_rssi_iterator(void *_data, u8 *mac, | |||
1128 | } | 1128 | } |
1129 | 1129 | ||
1130 | void iwl_mvm_bt_rssi_event_old(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 1130 | void iwl_mvm_bt_rssi_event_old(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
1131 | enum ieee80211_rssi_event rssi_event) | 1131 | enum ieee80211_rssi_event_data rssi_event) |
1132 | { | 1132 | { |
1133 | struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); | 1133 | struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); |
1134 | struct iwl_bt_iterator_data data = { | 1134 | struct iwl_bt_iterator_data data = { |
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h index 500064f5d8f1..2b7e6cb1dbd9 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mvm.h +++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h | |||
@@ -1289,7 +1289,7 @@ int iwl_mvm_rx_bt_coex_notif(struct iwl_mvm *mvm, | |||
1289 | struct iwl_rx_cmd_buffer *rxb, | 1289 | struct iwl_rx_cmd_buffer *rxb, |
1290 | struct iwl_device_cmd *cmd); | 1290 | struct iwl_device_cmd *cmd); |
1291 | void iwl_mvm_bt_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 1291 | void iwl_mvm_bt_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
1292 | enum ieee80211_rssi_event rssi_event); | 1292 | enum ieee80211_rssi_event_data); |
1293 | void iwl_mvm_bt_coex_vif_change(struct iwl_mvm *mvm); | 1293 | void iwl_mvm_bt_coex_vif_change(struct iwl_mvm *mvm); |
1294 | u16 iwl_mvm_coex_agg_time_limit(struct iwl_mvm *mvm, | 1294 | u16 iwl_mvm_coex_agg_time_limit(struct iwl_mvm *mvm, |
1295 | struct ieee80211_sta *sta); | 1295 | struct ieee80211_sta *sta); |
@@ -1309,7 +1309,7 @@ int iwl_mvm_rx_bt_coex_notif_old(struct iwl_mvm *mvm, | |||
1309 | struct iwl_rx_cmd_buffer *rxb, | 1309 | struct iwl_rx_cmd_buffer *rxb, |
1310 | struct iwl_device_cmd *cmd); | 1310 | struct iwl_device_cmd *cmd); |
1311 | void iwl_mvm_bt_rssi_event_old(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | 1311 | void iwl_mvm_bt_rssi_event_old(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
1312 | enum ieee80211_rssi_event rssi_event); | 1312 | enum ieee80211_rssi_event_data); |
1313 | u16 iwl_mvm_coex_agg_time_limit_old(struct iwl_mvm *mvm, | 1313 | u16 iwl_mvm_coex_agg_time_limit_old(struct iwl_mvm *mvm, |
1314 | struct ieee80211_sta *sta); | 1314 | struct ieee80211_sta *sta); |
1315 | bool iwl_mvm_bt_coex_is_mimo_allowed_old(struct iwl_mvm *mvm, | 1315 | bool iwl_mvm_bt_coex_is_mimo_allowed_old(struct iwl_mvm *mvm, |
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index a92985a6ea21..1a4d558022d8 100644 --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c | |||
@@ -1356,8 +1356,8 @@ static int lbs_cfg_connect(struct wiphy *wiphy, struct net_device *dev, | |||
1356 | 1356 | ||
1357 | /* Find the BSS we want using available scan results */ | 1357 | /* Find the BSS we want using available scan results */ |
1358 | bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, | 1358 | bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, |
1359 | sme->ssid, sme->ssid_len, | 1359 | sme->ssid, sme->ssid_len, IEEE80211_BSS_TYPE_ESS, |
1360 | WLAN_CAPABILITY_ESS, WLAN_CAPABILITY_ESS); | 1360 | IEEE80211_PRIVACY_ANY); |
1361 | if (!bss) { | 1361 | if (!bss) { |
1362 | wiphy_err(wiphy, "assoc: bss %pM not in scan results\n", | 1362 | wiphy_err(wiphy, "assoc: bss %pM not in scan results\n", |
1363 | sme->bssid); | 1363 | sme->bssid); |
@@ -2000,7 +2000,7 @@ static int lbs_join_ibss(struct wiphy *wiphy, struct net_device *dev, | |||
2000 | * bss list is populated already */ | 2000 | * bss list is populated already */ |
2001 | bss = cfg80211_get_bss(wiphy, params->chandef.chan, params->bssid, | 2001 | bss = cfg80211_get_bss(wiphy, params->chandef.chan, params->bssid, |
2002 | params->ssid, params->ssid_len, | 2002 | params->ssid, params->ssid_len, |
2003 | WLAN_CAPABILITY_IBSS, WLAN_CAPABILITY_IBSS); | 2003 | IEEE80211_BSS_TYPE_IBSS, IEEE80211_PRIVACY_ANY); |
2004 | 2004 | ||
2005 | if (bss) { | 2005 | if (bss) { |
2006 | ret = lbs_ibss_join_existing(priv, params, bss); | 2006 | ret = lbs_ibss_join_existing(priv, params, bss); |
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 4a4c6586a8d2..941925991476 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -330,6 +330,83 @@ static const struct ieee80211_rate hwsim_rates[] = { | |||
330 | { .bitrate = 540 } | 330 | { .bitrate = 540 } |
331 | }; | 331 | }; |
332 | 332 | ||
333 | #define OUI_QCA 0x001374 | ||
334 | #define QCA_NL80211_SUBCMD_TEST 1 | ||
335 | enum qca_nl80211_vendor_subcmds { | ||
336 | QCA_WLAN_VENDOR_ATTR_TEST = 8, | ||
337 | QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_TEST | ||
338 | }; | ||
339 | |||
340 | static const struct nla_policy | ||
341 | hwsim_vendor_test_policy[QCA_WLAN_VENDOR_ATTR_MAX + 1] = { | ||
342 | [QCA_WLAN_VENDOR_ATTR_MAX] = { .type = NLA_U32 }, | ||
343 | }; | ||
344 | |||
345 | static int mac80211_hwsim_vendor_cmd_test(struct wiphy *wiphy, | ||
346 | struct wireless_dev *wdev, | ||
347 | const void *data, int data_len) | ||
348 | { | ||
349 | struct sk_buff *skb; | ||
350 | struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_MAX + 1]; | ||
351 | int err; | ||
352 | u32 val; | ||
353 | |||
354 | err = nla_parse(tb, QCA_WLAN_VENDOR_ATTR_MAX, data, data_len, | ||
355 | hwsim_vendor_test_policy); | ||
356 | if (err) | ||
357 | return err; | ||
358 | if (!tb[QCA_WLAN_VENDOR_ATTR_TEST]) | ||
359 | return -EINVAL; | ||
360 | val = nla_get_u32(tb[QCA_WLAN_VENDOR_ATTR_TEST]); | ||
361 | wiphy_debug(wiphy, "%s: test=%u\n", __func__, val); | ||
362 | |||
363 | /* Send a vendor event as a test. Note that this would not normally be | ||
364 | * done within a command handler, but rather, based on some other | ||
365 | * trigger. For simplicity, this command is used to trigger the event | ||
366 | * here. | ||
367 | * | ||
368 | * event_idx = 0 (index in mac80211_hwsim_vendor_commands) | ||
369 | */ | ||
370 | skb = cfg80211_vendor_event_alloc(wiphy, wdev, 100, 0, GFP_KERNEL); | ||
371 | if (skb) { | ||
372 | /* skb_put() or nla_put() will fill up data within | ||
373 | * NL80211_ATTR_VENDOR_DATA. | ||
374 | */ | ||
375 | |||
376 | /* Add vendor data */ | ||
377 | nla_put_u32(skb, QCA_WLAN_VENDOR_ATTR_TEST, val + 1); | ||
378 | |||
379 | /* Send the event - this will call nla_nest_end() */ | ||
380 | cfg80211_vendor_event(skb, GFP_KERNEL); | ||
381 | } | ||
382 | |||
383 | /* Send a response to the command */ | ||
384 | skb = cfg80211_vendor_cmd_alloc_reply_skb(wiphy, 10); | ||
385 | if (!skb) | ||
386 | return -ENOMEM; | ||
387 | |||
388 | /* skb_put() or nla_put() will fill up data within | ||
389 | * NL80211_ATTR_VENDOR_DATA | ||
390 | */ | ||
391 | nla_put_u32(skb, QCA_WLAN_VENDOR_ATTR_TEST, val + 2); | ||
392 | |||
393 | return cfg80211_vendor_cmd_reply(skb); | ||
394 | } | ||
395 | |||
396 | static struct wiphy_vendor_command mac80211_hwsim_vendor_commands[] = { | ||
397 | { | ||
398 | .info = { .vendor_id = OUI_QCA, | ||
399 | .subcmd = QCA_NL80211_SUBCMD_TEST }, | ||
400 | .flags = WIPHY_VENDOR_CMD_NEED_NETDEV, | ||
401 | .doit = mac80211_hwsim_vendor_cmd_test, | ||
402 | } | ||
403 | }; | ||
404 | |||
405 | /* Advertise support vendor specific events */ | ||
406 | static const struct nl80211_vendor_cmd_info mac80211_hwsim_vendor_events[] = { | ||
407 | { .vendor_id = OUI_QCA, .subcmd = 1 }, | ||
408 | }; | ||
409 | |||
333 | static const struct ieee80211_iface_limit hwsim_if_limits[] = { | 410 | static const struct ieee80211_iface_limit hwsim_if_limits[] = { |
334 | { .max = 1, .types = BIT(NL80211_IFTYPE_ADHOC) }, | 411 | { .max = 1, .types = BIT(NL80211_IFTYPE_ADHOC) }, |
335 | { .max = 2048, .types = BIT(NL80211_IFTYPE_STATION) | | 412 | { .max = 2048, .types = BIT(NL80211_IFTYPE_STATION) | |
@@ -906,8 +983,7 @@ static void mac80211_hwsim_tx_frame_nl(struct ieee80211_hw *hw, | |||
906 | goto nla_put_failure; | 983 | goto nla_put_failure; |
907 | } | 984 | } |
908 | 985 | ||
909 | if (nla_put(skb, HWSIM_ATTR_ADDR_TRANSMITTER, | 986 | if (nla_put(skb, HWSIM_ATTR_ADDR_TRANSMITTER, ETH_ALEN, hdr->addr2)) |
910 | ETH_ALEN, data->addresses[1].addr)) | ||
911 | goto nla_put_failure; | 987 | goto nla_put_failure; |
912 | 988 | ||
913 | /* We get the skb->data */ | 989 | /* We get the skb->data */ |
@@ -1519,21 +1595,16 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw, | |||
1519 | vp->aid = info->aid; | 1595 | vp->aid = info->aid; |
1520 | } | 1596 | } |
1521 | 1597 | ||
1522 | if (changed & BSS_CHANGED_BEACON_INT) { | ||
1523 | wiphy_debug(hw->wiphy, " BCNINT: %d\n", info->beacon_int); | ||
1524 | data->beacon_int = info->beacon_int * 1024; | ||
1525 | } | ||
1526 | |||
1527 | if (changed & BSS_CHANGED_BEACON_ENABLED) { | 1598 | if (changed & BSS_CHANGED_BEACON_ENABLED) { |
1528 | wiphy_debug(hw->wiphy, " BCN EN: %d\n", info->enable_beacon); | 1599 | wiphy_debug(hw->wiphy, " BCN EN: %d (BI=%u)\n", |
1600 | info->enable_beacon, info->beacon_int); | ||
1529 | vp->bcn_en = info->enable_beacon; | 1601 | vp->bcn_en = info->enable_beacon; |
1530 | if (data->started && | 1602 | if (data->started && |
1531 | !hrtimer_is_queued(&data->beacon_timer.timer) && | 1603 | !hrtimer_is_queued(&data->beacon_timer.timer) && |
1532 | info->enable_beacon) { | 1604 | info->enable_beacon) { |
1533 | u64 tsf, until_tbtt; | 1605 | u64 tsf, until_tbtt; |
1534 | u32 bcn_int; | 1606 | u32 bcn_int; |
1535 | if (WARN_ON(!data->beacon_int)) | 1607 | data->beacon_int = info->beacon_int * 1024; |
1536 | data->beacon_int = 1000 * 1024; | ||
1537 | tsf = mac80211_hwsim_get_tsf(hw, vif); | 1608 | tsf = mac80211_hwsim_get_tsf(hw, vif); |
1538 | bcn_int = data->beacon_int; | 1609 | bcn_int = data->beacon_int; |
1539 | until_tbtt = bcn_int - do_div(tsf, bcn_int); | 1610 | until_tbtt = bcn_int - do_div(tsf, bcn_int); |
@@ -1547,8 +1618,10 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw, | |||
1547 | mac80211_hwsim_bcn_en_iter, &count); | 1618 | mac80211_hwsim_bcn_en_iter, &count); |
1548 | wiphy_debug(hw->wiphy, " beaconing vifs remaining: %u", | 1619 | wiphy_debug(hw->wiphy, " beaconing vifs remaining: %u", |
1549 | count); | 1620 | count); |
1550 | if (count == 0) | 1621 | if (count == 0) { |
1551 | tasklet_hrtimer_cancel(&data->beacon_timer); | 1622 | tasklet_hrtimer_cancel(&data->beacon_timer); |
1623 | data->beacon_int = 0; | ||
1624 | } | ||
1552 | } | 1625 | } |
1553 | } | 1626 | } |
1554 | 1627 | ||
@@ -2417,6 +2490,12 @@ static int mac80211_hwsim_new_radio(struct genl_info *info, | |||
2417 | hw->max_rates = 4; | 2490 | hw->max_rates = 4; |
2418 | hw->max_rate_tries = 11; | 2491 | hw->max_rate_tries = 11; |
2419 | 2492 | ||
2493 | hw->wiphy->vendor_commands = mac80211_hwsim_vendor_commands; | ||
2494 | hw->wiphy->n_vendor_commands = | ||
2495 | ARRAY_SIZE(mac80211_hwsim_vendor_commands); | ||
2496 | hw->wiphy->vendor_events = mac80211_hwsim_vendor_events; | ||
2497 | hw->wiphy->n_vendor_events = ARRAY_SIZE(mac80211_hwsim_vendor_events); | ||
2498 | |||
2420 | if (param->reg_strict) | 2499 | if (param->reg_strict) |
2421 | hw->wiphy->regulatory_flags |= REGULATORY_STRICT_REG; | 2500 | hw->wiphy->regulatory_flags |= REGULATORY_STRICT_REG; |
2422 | if (param->regd) { | 2501 | if (param->regd) { |
@@ -2608,7 +2687,7 @@ static struct mac80211_hwsim_data *get_hwsim_data_ref_from_addr(const u8 *addr) | |||
2608 | 2687 | ||
2609 | spin_lock_bh(&hwsim_radio_lock); | 2688 | spin_lock_bh(&hwsim_radio_lock); |
2610 | list_for_each_entry(data, &hwsim_radios, list) { | 2689 | list_for_each_entry(data, &hwsim_radios, list) { |
2611 | if (memcmp(data->addresses[1].addr, addr, ETH_ALEN) == 0) { | 2690 | if (mac80211_hwsim_addr_match(data, addr)) { |
2612 | _found = true; | 2691 | _found = true; |
2613 | break; | 2692 | break; |
2614 | } | 2693 | } |
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 41c8e25df954..2d489bfaea08 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -1954,13 +1954,13 @@ done: | |||
1954 | if (mode == NL80211_IFTYPE_ADHOC) | 1954 | if (mode == NL80211_IFTYPE_ADHOC) |
1955 | bss = cfg80211_get_bss(priv->wdev.wiphy, channel, | 1955 | bss = cfg80211_get_bss(priv->wdev.wiphy, channel, |
1956 | bssid, ssid, ssid_len, | 1956 | bssid, ssid, ssid_len, |
1957 | WLAN_CAPABILITY_IBSS, | 1957 | IEEE80211_BSS_TYPE_IBSS, |
1958 | WLAN_CAPABILITY_IBSS); | 1958 | IEEE80211_PRIVACY_ANY); |
1959 | else | 1959 | else |
1960 | bss = cfg80211_get_bss(priv->wdev.wiphy, channel, | 1960 | bss = cfg80211_get_bss(priv->wdev.wiphy, channel, |
1961 | bssid, ssid, ssid_len, | 1961 | bssid, ssid, ssid_len, |
1962 | WLAN_CAPABILITY_ESS, | 1962 | IEEE80211_BSS_TYPE_ESS, |
1963 | WLAN_CAPABILITY_ESS); | 1963 | IEEE80211_PRIVACY_ANY); |
1964 | 1964 | ||
1965 | if (!bss) { | 1965 | if (!bss) { |
1966 | if (is_scanning_required) { | 1966 | if (is_scanning_required) { |
@@ -2399,10 +2399,11 @@ mwifiex_setup_ht_caps(struct ieee80211_sta_ht_cap *ht_info, | |||
2399 | 2399 | ||
2400 | #define MWIFIEX_MAX_WQ_LEN 30 | 2400 | #define MWIFIEX_MAX_WQ_LEN 30 |
2401 | /* | 2401 | /* |
2402 | * create a new virtual interface with the given name | 2402 | * create a new virtual interface with the given name and name assign type |
2403 | */ | 2403 | */ |
2404 | struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, | 2404 | struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, |
2405 | const char *name, | 2405 | const char *name, |
2406 | unsigned char name_assign_type, | ||
2406 | enum nl80211_iftype type, | 2407 | enum nl80211_iftype type, |
2407 | u32 *flags, | 2408 | u32 *flags, |
2408 | struct vif_params *params) | 2409 | struct vif_params *params) |
@@ -2523,7 +2524,7 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, | |||
2523 | } | 2524 | } |
2524 | 2525 | ||
2525 | dev = alloc_netdev_mqs(sizeof(struct mwifiex_private *), name, | 2526 | dev = alloc_netdev_mqs(sizeof(struct mwifiex_private *), name, |
2526 | NET_NAME_UNKNOWN, ether_setup, | 2527 | name_assign_type, ether_setup, |
2527 | IEEE80211_NUM_ACS, 1); | 2528 | IEEE80211_NUM_ACS, 1); |
2528 | if (!dev) { | 2529 | if (!dev) { |
2529 | wiphy_err(wiphy, "no memory available for netdevice\n"); | 2530 | wiphy_err(wiphy, "no memory available for netdevice\n"); |
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c index 7e74b4fccddd..6f55e84fcab1 100644 --- a/drivers/net/wireless/mwifiex/main.c +++ b/drivers/net/wireless/mwifiex/main.c | |||
@@ -466,7 +466,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context) | |||
466 | 466 | ||
467 | rtnl_lock(); | 467 | rtnl_lock(); |
468 | /* Create station interface by default */ | 468 | /* Create station interface by default */ |
469 | wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", | 469 | wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", NET_NAME_ENUM, |
470 | NL80211_IFTYPE_STATION, NULL, NULL); | 470 | NL80211_IFTYPE_STATION, NULL, NULL); |
471 | if (IS_ERR(wdev)) { | 471 | if (IS_ERR(wdev)) { |
472 | dev_err(adapter->dev, "cannot create default STA interface\n"); | 472 | dev_err(adapter->dev, "cannot create default STA interface\n"); |
@@ -475,7 +475,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context) | |||
475 | } | 475 | } |
476 | 476 | ||
477 | if (driver_mode & MWIFIEX_DRIVER_MODE_UAP) { | 477 | if (driver_mode & MWIFIEX_DRIVER_MODE_UAP) { |
478 | wdev = mwifiex_add_virtual_intf(adapter->wiphy, "uap%d", | 478 | wdev = mwifiex_add_virtual_intf(adapter->wiphy, "uap%d", NET_NAME_ENUM, |
479 | NL80211_IFTYPE_AP, NULL, NULL); | 479 | NL80211_IFTYPE_AP, NULL, NULL); |
480 | if (IS_ERR(wdev)) { | 480 | if (IS_ERR(wdev)) { |
481 | dev_err(adapter->dev, "cannot create AP interface\n"); | 481 | dev_err(adapter->dev, "cannot create AP interface\n"); |
@@ -485,7 +485,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context) | |||
485 | } | 485 | } |
486 | 486 | ||
487 | if (driver_mode & MWIFIEX_DRIVER_MODE_P2P) { | 487 | if (driver_mode & MWIFIEX_DRIVER_MODE_P2P) { |
488 | wdev = mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d", | 488 | wdev = mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d", NET_NAME_ENUM, |
489 | NL80211_IFTYPE_P2P_CLIENT, NULL, | 489 | NL80211_IFTYPE_P2P_CLIENT, NULL, |
490 | NULL); | 490 | NULL); |
491 | if (IS_ERR(wdev)) { | 491 | if (IS_ERR(wdev)) { |
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index f0a6af179af0..3f0625f22265 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h | |||
@@ -1318,6 +1318,7 @@ u8 mwifiex_chan_type_to_sec_chan_offset(enum nl80211_channel_type chan_type); | |||
1318 | 1318 | ||
1319 | struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, | 1319 | struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, |
1320 | const char *name, | 1320 | const char *name, |
1321 | unsigned char name_assign_type, | ||
1321 | enum nl80211_iftype type, | 1322 | enum nl80211_iftype type, |
1322 | u32 *flags, | 1323 | u32 *flags, |
1323 | struct vif_params *params); | 1324 | struct vif_params *params); |
diff --git a/drivers/net/wireless/orinoco/Kconfig b/drivers/net/wireless/orinoco/Kconfig index 6d831d4d1b5f..f6fa3f4e294f 100644 --- a/drivers/net/wireless/orinoco/Kconfig +++ b/drivers/net/wireless/orinoco/Kconfig | |||
@@ -2,7 +2,7 @@ config HERMES | |||
2 | tristate "Hermes chipset 802.11b support (Orinoco/Prism2/Symbol)" | 2 | tristate "Hermes chipset 802.11b support (Orinoco/Prism2/Symbol)" |
3 | depends on (PPC_PMAC || PCI || PCMCIA) | 3 | depends on (PPC_PMAC || PCI || PCMCIA) |
4 | depends on CFG80211 | 4 | depends on CFG80211 |
5 | select CFG80211_WEXT | 5 | select CFG80211_WEXT_EXPORT |
6 | select WIRELESS_EXT | 6 | select WIRELESS_EXT |
7 | select WEXT_SPY | 7 | select WEXT_SPY |
8 | select WEXT_PRIV | 8 | select WEXT_PRIV |
diff --git a/drivers/net/wireless/ti/wl18xx/event.c b/drivers/net/wireless/ti/wl18xx/event.c index c28f06854195..548bb9e7e91e 100644 --- a/drivers/net/wireless/ti/wl18xx/event.c +++ b/drivers/net/wireless/ti/wl18xx/event.c | |||
@@ -77,7 +77,7 @@ static int wlcore_smart_config_sync_event(struct wl1271 *wl, u8 sync_channel, | |||
77 | wl1271_debug(DEBUG_EVENT, | 77 | wl1271_debug(DEBUG_EVENT, |
78 | "SMART_CONFIG_SYNC_EVENT_ID, freq: %d (chan: %d band %d)", | 78 | "SMART_CONFIG_SYNC_EVENT_ID, freq: %d (chan: %d band %d)", |
79 | freq, sync_channel, sync_band); | 79 | freq, sync_channel, sync_band); |
80 | skb = cfg80211_vendor_event_alloc(wl->hw->wiphy, 20, | 80 | skb = cfg80211_vendor_event_alloc(wl->hw->wiphy, NULL, 20, |
81 | WLCORE_VENDOR_EVENT_SC_SYNC, | 81 | WLCORE_VENDOR_EVENT_SC_SYNC, |
82 | GFP_KERNEL); | 82 | GFP_KERNEL); |
83 | 83 | ||
@@ -98,7 +98,7 @@ static int wlcore_smart_config_decode_event(struct wl1271 *wl, | |||
98 | wl1271_debug(DEBUG_EVENT, "SMART_CONFIG_DECODE_EVENT_ID"); | 98 | wl1271_debug(DEBUG_EVENT, "SMART_CONFIG_DECODE_EVENT_ID"); |
99 | wl1271_dump_ascii(DEBUG_EVENT, "SSID:", ssid, ssid_len); | 99 | wl1271_dump_ascii(DEBUG_EVENT, "SSID:", ssid, ssid_len); |
100 | 100 | ||
101 | skb = cfg80211_vendor_event_alloc(wl->hw->wiphy, | 101 | skb = cfg80211_vendor_event_alloc(wl->hw->wiphy, NULL, |
102 | ssid_len + pwd_len + 20, | 102 | ssid_len + pwd_len + 20, |
103 | WLCORE_VENDOR_EVENT_SC_DECODE, | 103 | WLCORE_VENDOR_EVENT_SC_DECODE, |
104 | GFP_KERNEL); | 104 | GFP_KERNEL); |