diff options
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/wireless/ath/ath6kl/testmode.c | 3 | ||||
| -rw-r--r-- | drivers/net/wireless/ath/ath6kl/testmode.h | 7 | ||||
| -rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 4 | ||||
| -rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/tx.c | 2 | ||||
| -rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-devtrace.h | 7 | ||||
| -rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/time-event.c | 7 | ||||
| -rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/tx.c | 9 | ||||
| -rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 1 | ||||
| -rw-r--r-- | drivers/net/wireless/ti/wlcore/testmode.c | 3 | ||||
| -rw-r--r-- | drivers/net/wireless/ti/wlcore/testmode.h | 3 |
10 files changed, 26 insertions, 20 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/testmode.c b/drivers/net/wireless/ath/ath6kl/testmode.c index acc9aa832f76..d67170ea1038 100644 --- a/drivers/net/wireless/ath/ath6kl/testmode.c +++ b/drivers/net/wireless/ath/ath6kl/testmode.c | |||
| @@ -66,7 +66,8 @@ nla_put_failure: | |||
| 66 | ath6kl_warn("nla_put failed on testmode rx skb!\n"); | 66 | ath6kl_warn("nla_put failed on testmode rx skb!\n"); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | int ath6kl_tm_cmd(struct wiphy *wiphy, void *data, int len) | 69 | int ath6kl_tm_cmd(struct wiphy *wiphy, struct wireless_dev *wdev, |
| 70 | void *data, int len) | ||
| 70 | { | 71 | { |
| 71 | struct ath6kl *ar = wiphy_priv(wiphy); | 72 | struct ath6kl *ar = wiphy_priv(wiphy); |
| 72 | struct nlattr *tb[ATH6KL_TM_ATTR_MAX + 1]; | 73 | struct nlattr *tb[ATH6KL_TM_ATTR_MAX + 1]; |
diff --git a/drivers/net/wireless/ath/ath6kl/testmode.h b/drivers/net/wireless/ath/ath6kl/testmode.h index fe651d6707df..9fbcdec3e208 100644 --- a/drivers/net/wireless/ath/ath6kl/testmode.h +++ b/drivers/net/wireless/ath/ath6kl/testmode.h | |||
| @@ -20,7 +20,8 @@ | |||
| 20 | #ifdef CONFIG_NL80211_TESTMODE | 20 | #ifdef CONFIG_NL80211_TESTMODE |
| 21 | 21 | ||
| 22 | void ath6kl_tm_rx_event(struct ath6kl *ar, void *buf, size_t buf_len); | 22 | void ath6kl_tm_rx_event(struct ath6kl *ar, void *buf, size_t buf_len); |
| 23 | int ath6kl_tm_cmd(struct wiphy *wiphy, void *data, int len); | 23 | int ath6kl_tm_cmd(struct wiphy *wiphy, struct wireless_dev *wdev, |
| 24 | void *data, int len); | ||
| 24 | 25 | ||
| 25 | #else | 26 | #else |
| 26 | 27 | ||
| @@ -29,7 +30,9 @@ static inline void ath6kl_tm_rx_event(struct ath6kl *ar, void *buf, | |||
| 29 | { | 30 | { |
| 30 | } | 31 | } |
| 31 | 32 | ||
| 32 | static inline int ath6kl_tm_cmd(struct wiphy *wiphy, void *data, int len) | 33 | static inline int ath6kl_tm_cmd(struct wiphy *wiphy, |
| 34 | struct wireless_dev *wdev, | ||
| 35 | void *data, int len) | ||
| 33 | { | 36 | { |
| 34 | return 0; | 37 | return 0; |
| 35 | } | 38 | } |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c index 0370e44cec11..571f013cebbb 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | |||
| @@ -3155,7 +3155,9 @@ static int brcmf_cfg80211_sched_scan_stop(struct wiphy *wiphy, | |||
| 3155 | } | 3155 | } |
| 3156 | 3156 | ||
| 3157 | #ifdef CONFIG_NL80211_TESTMODE | 3157 | #ifdef CONFIG_NL80211_TESTMODE |
| 3158 | static int brcmf_cfg80211_testmode(struct wiphy *wiphy, void *data, int len) | 3158 | static int brcmf_cfg80211_testmode(struct wiphy *wiphy, |
| 3159 | struct wireless_dev *wdev, | ||
| 3160 | void *data, int len) | ||
| 3159 | { | 3161 | { |
| 3160 | struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); | 3162 | struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); |
| 3161 | struct net_device *ndev = cfg_to_ndev(cfg); | 3163 | struct net_device *ndev = cfg_to_ndev(cfg); |
diff --git a/drivers/net/wireless/iwlwifi/dvm/tx.c b/drivers/net/wireless/iwlwifi/dvm/tx.c index 3db0bbb1d123..da442b81370a 100644 --- a/drivers/net/wireless/iwlwifi/dvm/tx.c +++ b/drivers/net/wireless/iwlwifi/dvm/tx.c | |||
| @@ -87,7 +87,7 @@ static void iwlagn_tx_cmd_build_basic(struct iwl_priv *priv, | |||
| 87 | priv->lib->bt_params->advanced_bt_coexist && | 87 | priv->lib->bt_params->advanced_bt_coexist && |
| 88 | (ieee80211_is_auth(fc) || ieee80211_is_assoc_req(fc) || | 88 | (ieee80211_is_auth(fc) || ieee80211_is_assoc_req(fc) || |
| 89 | ieee80211_is_reassoc_req(fc) || | 89 | ieee80211_is_reassoc_req(fc) || |
| 90 | skb->protocol == cpu_to_be16(ETH_P_PAE))) | 90 | info->control.flags & IEEE80211_TX_CTRL_PORT_CTRL_PROTO)) |
| 91 | tx_flags |= TX_CMD_FLG_IGNORE_BT; | 91 | tx_flags |= TX_CMD_FLG_IGNORE_BT; |
| 92 | 92 | ||
| 93 | 93 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-devtrace.h b/drivers/net/wireless/iwlwifi/iwl-devtrace.h index 4491c1c72cc7..684c416d3493 100644 --- a/drivers/net/wireless/iwlwifi/iwl-devtrace.h +++ b/drivers/net/wireless/iwlwifi/iwl-devtrace.h | |||
| @@ -33,10 +33,11 @@ | |||
| 33 | static inline bool iwl_trace_data(struct sk_buff *skb) | 33 | static inline bool iwl_trace_data(struct sk_buff *skb) |
| 34 | { | 34 | { |
| 35 | struct ieee80211_hdr *hdr = (void *)skb->data; | 35 | struct ieee80211_hdr *hdr = (void *)skb->data; |
| 36 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | ||
| 36 | 37 | ||
| 37 | if (ieee80211_is_data(hdr->frame_control)) | 38 | if (!ieee80211_is_data(hdr->frame_control)) |
| 38 | return skb->protocol != cpu_to_be16(ETH_P_PAE); | 39 | return false; |
| 39 | return false; | 40 | return !(info->control.flags & IEEE80211_TX_CTRL_PORT_CTRL_PROTO); |
| 40 | } | 41 | } |
| 41 | 42 | ||
| 42 | static inline size_t iwl_rx_trace_len(const struct iwl_trans *trans, | 43 | static inline size_t iwl_rx_trace_len(const struct iwl_trans *trans, |
diff --git a/drivers/net/wireless/iwlwifi/mvm/time-event.c b/drivers/net/wireless/iwlwifi/mvm/time-event.c index ad9bbca99213..9f100363b177 100644 --- a/drivers/net/wireless/iwlwifi/mvm/time-event.c +++ b/drivers/net/wireless/iwlwifi/mvm/time-event.c | |||
| @@ -73,7 +73,6 @@ | |||
| 73 | #include "iwl-prph.h" | 73 | #include "iwl-prph.h" |
| 74 | 74 | ||
| 75 | /* A TimeUnit is 1024 microsecond */ | 75 | /* A TimeUnit is 1024 microsecond */ |
| 76 | #define TU_TO_JIFFIES(_tu) (usecs_to_jiffies((_tu) * 1024)) | ||
| 77 | #define MSEC_TO_TU(_msec) (_msec*1000/1024) | 76 | #define MSEC_TO_TU(_msec) (_msec*1000/1024) |
| 78 | 77 | ||
| 79 | /* | 78 | /* |
| @@ -191,8 +190,7 @@ static void iwl_mvm_te_handle_notif(struct iwl_mvm *mvm, | |||
| 191 | iwl_mvm_te_clear_data(mvm, te_data); | 190 | iwl_mvm_te_clear_data(mvm, te_data); |
| 192 | } else if (le32_to_cpu(notif->action) & TE_NOTIF_HOST_EVENT_START) { | 191 | } else if (le32_to_cpu(notif->action) & TE_NOTIF_HOST_EVENT_START) { |
| 193 | te_data->running = true; | 192 | te_data->running = true; |
| 194 | te_data->end_jiffies = jiffies + | 193 | te_data->end_jiffies = TU_TO_EXP_TIME(te_data->duration); |
| 195 | TU_TO_JIFFIES(te_data->duration); | ||
| 196 | 194 | ||
| 197 | if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) { | 195 | if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) { |
| 198 | set_bit(IWL_MVM_STATUS_ROC_RUNNING, &mvm->status); | 196 | set_bit(IWL_MVM_STATUS_ROC_RUNNING, &mvm->status); |
| @@ -329,8 +327,7 @@ void iwl_mvm_protect_session(struct iwl_mvm *mvm, | |||
| 329 | lockdep_assert_held(&mvm->mutex); | 327 | lockdep_assert_held(&mvm->mutex); |
| 330 | 328 | ||
| 331 | if (te_data->running && | 329 | if (te_data->running && |
| 332 | time_after(te_data->end_jiffies, | 330 | time_after(te_data->end_jiffies, TU_TO_EXP_TIME(min_duration))) { |
| 333 | jiffies + TU_TO_JIFFIES(min_duration))) { | ||
| 334 | IWL_DEBUG_TE(mvm, "We have enough time in the current TE: %u\n", | 331 | IWL_DEBUG_TE(mvm, "We have enough time in the current TE: %u\n", |
| 335 | jiffies_to_msecs(te_data->end_jiffies - jiffies)); | 332 | jiffies_to_msecs(te_data->end_jiffies - jiffies)); |
| 336 | return; | 333 | return; |
diff --git a/drivers/net/wireless/iwlwifi/mvm/tx.c b/drivers/net/wireless/iwlwifi/mvm/tx.c index f68ef9dd6a70..e05440d90319 100644 --- a/drivers/net/wireless/iwlwifi/mvm/tx.c +++ b/drivers/net/wireless/iwlwifi/mvm/tx.c | |||
| @@ -91,11 +91,10 @@ static void iwl_mvm_set_tx_cmd(struct iwl_mvm *mvm, struct sk_buff *skb, | |||
| 91 | tx_flags |= TX_CMD_FLG_ACK | TX_CMD_FLG_BAR; | 91 | tx_flags |= TX_CMD_FLG_ACK | TX_CMD_FLG_BAR; |
| 92 | 92 | ||
| 93 | /* High prio packet (wrt. BT coex) if it is EAPOL, MCAST or MGMT */ | 93 | /* High prio packet (wrt. BT coex) if it is EAPOL, MCAST or MGMT */ |
| 94 | if (info->band == IEEE80211_BAND_2GHZ && | 94 | if (info->band == IEEE80211_BAND_2GHZ && |
| 95 | (skb->protocol == cpu_to_be16(ETH_P_PAE) || | 95 | (info->control.flags & IEEE80211_TX_CTRL_PORT_CTRL_PROTO || |
| 96 | is_multicast_ether_addr(hdr->addr1) || | 96 | is_multicast_ether_addr(hdr->addr1) || |
| 97 | ieee80211_is_back_req(fc) || | 97 | ieee80211_is_back_req(fc) || ieee80211_is_mgmt(fc))) |
| 98 | ieee80211_is_mgmt(fc))) | ||
| 99 | tx_flags |= TX_CMD_FLG_BT_DIS; | 98 | tx_flags |= TX_CMD_FLG_BT_DIS; |
| 100 | 99 | ||
| 101 | if (ieee80211_has_morefrags(fc)) | 100 | if (ieee80211_has_morefrags(fc)) |
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 7b2a6229eedb..a0d2aacd5e09 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
| @@ -1364,6 +1364,7 @@ static const struct nla_policy hwsim_testmode_policy[HWSIM_TM_ATTR_MAX + 1] = { | |||
| 1364 | static int hwsim_fops_ps_write(void *dat, u64 val); | 1364 | static int hwsim_fops_ps_write(void *dat, u64 val); |
| 1365 | 1365 | ||
| 1366 | static int mac80211_hwsim_testmode_cmd(struct ieee80211_hw *hw, | 1366 | static int mac80211_hwsim_testmode_cmd(struct ieee80211_hw *hw, |
| 1367 | struct ieee80211_vif *vif, | ||
| 1367 | void *data, int len) | 1368 | void *data, int len) |
| 1368 | { | 1369 | { |
| 1369 | struct mac80211_hwsim_data *hwsim = hw->priv; | 1370 | struct mac80211_hwsim_data *hwsim = hw->priv; |
diff --git a/drivers/net/wireless/ti/wlcore/testmode.c b/drivers/net/wireless/ti/wlcore/testmode.c index f3442762d884..527590f2adfb 100644 --- a/drivers/net/wireless/ti/wlcore/testmode.c +++ b/drivers/net/wireless/ti/wlcore/testmode.c | |||
| @@ -356,7 +356,8 @@ out: | |||
| 356 | return ret; | 356 | return ret; |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | int wl1271_tm_cmd(struct ieee80211_hw *hw, void *data, int len) | 359 | int wl1271_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
| 360 | void *data, int len) | ||
| 360 | { | 361 | { |
| 361 | struct wl1271 *wl = hw->priv; | 362 | struct wl1271 *wl = hw->priv; |
| 362 | struct nlattr *tb[WL1271_TM_ATTR_MAX + 1]; | 363 | struct nlattr *tb[WL1271_TM_ATTR_MAX + 1]; |
diff --git a/drivers/net/wireless/ti/wlcore/testmode.h b/drivers/net/wireless/ti/wlcore/testmode.h index 8071654259ea..61d8434d859a 100644 --- a/drivers/net/wireless/ti/wlcore/testmode.h +++ b/drivers/net/wireless/ti/wlcore/testmode.h | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | #include <net/mac80211.h> | 27 | #include <net/mac80211.h> |
| 28 | 28 | ||
| 29 | int wl1271_tm_cmd(struct ieee80211_hw *hw, void *data, int len); | 29 | int wl1271_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
| 30 | void *data, int len); | ||
| 30 | 31 | ||
| 31 | #endif /* __WL1271_TESTMODE_H__ */ | 32 | #endif /* __WL1271_TESTMODE_H__ */ |
