Skip to content

Adding NO_STA flag and reworking RX link resolution

Benjamin Berg ath11k ath12k linux-wireless 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 0 repliesNew
  2. v38 patches 6 repliesSuperseded
  3. v2 posting 2/28 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/28 patches3 repliesSuperseded
v18 patches0 repliesSuperseded

Changes in v4 from the cover letter

* Rename flag to NL80211_ATTR_FRAME_NO_STA
* Fix link_sta assignment in mt76_rx_convert

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8wifi: iwlwifi: use link_sta internally to the driverdrivers/net/wireless/intel/iwlwifi/mld/agg.c drivers/net/wireless/intel/iwlwifi/mld/agg.h drivers/net/wireless/intel/iwlwifi/mld/rx.c +2 more+39 -360 replies
2/8wifi: mac80211: change public RX API to use link stationsdrivers/net/wireless/ath/ath11k/dp_rx.c drivers/net/wireless/ath/ath12k/dp_mon.c drivers/net/wireless/ath/ath12k/dp_rx.c +13 more+92 -820 replies
3/8wifi: mac80211: refactor RX link_id and station handlinginclude/net/mac80211.h net/mac80211/ap.c net/mac80211/iface.c +3 more+106 -1440 replies
4/8wifi: mac80211: rework RX packet handlingnet/mac80211/rx.c+171 -1200 replies
5/8wifi: cfg80211: add attribute for TX/RX denoting there is no stationinclude/net/cfg80211.h include/uapi/linux/nl80211.h net/wireless/nl80211.c+18 -10 replies
6/8wifi: mac80211: report to cfg80211 when no STA is known for a framenet/mac80211/rx.c+1 -00 replies
7/8wifi: mac80211: pass station to ieee80211_tx_skb_tidnet/mac80211/agg-tx.c net/mac80211/ht.c net/mac80211/ieee80211_i.h +4 more+19 -140 replies
8/8wifi: mac80211: pass error station if non-STA transmit was requestednet/mac80211/offchannel.c+9 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH wireless-next v4 0/8] Adding NO_STA flag and reworking RX link resolution

From: Benjamin Berg <[email protected]>

Hi,

This patchset refactors the RX link resolution a bit to fix some issues where mac80211 might accept frames on the wrong link and incorrectly translate the address. It also adds a new NL80211_ATTR_FRAME_CMD_NO_STA flag so that userspace can know whether address translation was done by the kernel on RX and can also prevent address translation for management frames during TX.

This together should be enough to fix the existing issues in hostapd where stations that are still associated try to authenticate again but hostapd for example ends up sending the frame to an old link address.

Benjamin

PS: Sorry, the last mail had various issues, so resending properly now.

v4:
* Rename flag to NL80211_ATTR_FRAME_NO_STA
* Fix link_sta assignment in mt76_rx_convert

v3:
* Fix issues found during review

v2:
* Remove unused variable in rtw89

Changes in v1:
* Add NAN_DATA interface handling
* Handle NO_STA flag correctly for NAN
* Fixed forwarding of station parameter
* Rebase and other small fixes

Changes in RFCv2:
* Port other drivers to new API (untested)
* Fix a checkpatch warning

Benjamin Berg (8):
wifi: iwlwifi: use link_sta internally to the driver
wifi: mac80211: change public RX API to use link stations
wifi: mac80211: refactor RX link_id and station handling
wifi: mac80211: rework RX packet handling
wifi: cfg80211: add attribute for TX/RX denoting there is no station
wifi: mac80211: report to cfg80211 when no STA is known for a frame
wifi: mac80211: pass station to ieee80211_tx_skb_tid
wifi: mac80211: pass error station if non-STA transmit was requested

 drivers/net/wireless/ath/ath11k/dp_rx.c       |   2 +-
 drivers/net/wireless/ath/ath12k/dp_mon.c      |   2 -
 drivers/net/wireless/ath/ath12k/dp_rx.c       |  20 +-
 drivers/net/wireless/ath/ath12k/hw.h          |  20 +-
 drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c |  20 +-
 drivers/net/wireless/ath/ath12k/wifi7/dp_rx.h |  12 +-
 drivers/net/wireless/ath/ath12k/wifi7/hw.c    |   6 +-
 drivers/net/wireless/ath/ath12k/wmi.c         |   6 -
 drivers/net/wireless/intel/iwlwifi/mld/agg.c  |  17 +-
 drivers/net/wireless/intel/iwlwifi/mld/agg.h  |   4 +-
 drivers/net/wireless/intel/iwlwifi/mld/rx.c   |  50 +-
 drivers/net/wireless/intel/iwlwifi/mld/rx.h   |   2 +-
 .../wireless/intel/iwlwifi/mld/tests/agg.c    |   7 +-
 drivers/net/wireless/intel/iwlwifi/mvm/rx.c   |   2 +-
 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c |   6 +-
 drivers/net/wireless/mediatek/mt76/mac80211.c |  25 +-
 drivers/net/wireless/realtek/rtw89/core.c     |   7 -
 .../wireless/virtual/mac80211_hwsim_main.c    |   3 -
 include/net/cfg80211.h                        |   4 +
 include/net/mac80211.h                        |  25 +-
 include/uapi/linux/nl80211.h                  |   7 +
 net/mac80211/agg-tx.c                         |   4 +-
 net/mac80211/ap.c                             |   3 -
 net/mac80211/ht.c                             |   2 +-
 net/mac80211/ieee80211_i.h                    |  11 +-
 net/mac80211/iface.c                          |   7 +-
 net/mac80211/mlme.c                           |  10 +-
 net/mac80211/offchannel.c                     |  13 +-
 net/mac80211/rx.c                             | 447 ++++++++++--------
 net/mac80211/scan.c                           |  10 +-
 net/mac80211/tdls.c                           |   2 +-
 net/mac80211/tx.c                             |  10 +-
 net/wireless/nl80211.c                        |   8 +-
 33 files changed, 414 insertions(+), 360 deletions(-)
Signature · 1 line
2.55.0