Skip to content

Commit e41eb3e

Browse files
nbd168jmberg-intel
authored andcommitted
mac80211: remove iwlwifi specific workaround that broke sta NDP tx
Sending nulldata packets is important for sw AP link probing and detecting 4-address mode links. The checks that dropped these packets were apparently added to work around an iwlwifi firmware bug with multi-TID aggregation. Fixes: 41cbb0f ("mac80211: add support for HE") Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau <nbd@nbd.name> Link: https://lore.kernel.org/r/20210619101517.90806-1-nbd@nbd.name Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 1806239 commit e41eb3e

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

  • drivers/net/wireless/intel/iwlwifi/mvm
  • net/mac80211

‎drivers/net/wireless/intel/iwlwifi/mvm/tx.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,9 @@ static int iwl_mvm_tx_mpdu(struct iwl_mvm *mvm, struct sk_buff *skb,
10321032
if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA))
10331033
return -1;
10341034

1035+
if (unlikely(ieee80211_is_any_nullfunc(fc)) && sta->he_cap.has_he)
1036+
return -1;
1037+
10351038
if (unlikely(ieee80211_is_probe_resp(fc)))
10361039
iwl_mvm_probe_resp_set_noa(mvm, skb);
10371040

‎net/mac80211/mlme.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,11 +1094,6 @@ void ieee80211_send_nullfunc(struct ieee80211_local *local,
10941094
struct ieee80211_hdr_3addr *nullfunc;
10951095
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
10961096

1097-
/* Don't send NDPs when STA is connected HE */
1098-
if (sdata->vif.type == NL80211_IFTYPE_STATION &&
1099-
!(ifmgd->flags & IEEE80211_STA_DISABLE_HE))
1100-
return;
1101-
11021097
skb = ieee80211_nullfunc_get(&local->hw, &sdata->vif,
11031098
!ieee80211_hw_check(&local->hw, DOESNT_SUPPORT_QOS_NDP));
11041099
if (!skb)
@@ -1130,10 +1125,6 @@ static void ieee80211_send_4addr_nullfunc(struct ieee80211_local *local,
11301125
if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_STATION))
11311126
return;
11321127

1133-
/* Don't send NDPs when connected HE */
1134-
if (!(sdata->u.mgd.flags & IEEE80211_STA_DISABLE_HE))
1135-
return;
1136-
11371128
skb = dev_alloc_skb(local->hw.extra_tx_headroom + 30);
11381129
if (!skb)
11391130
return;

0 commit comments

Comments
 (0)