mbox series

[0/8] wifi: rtw89: use and propagate chanctx properly

Message ID 20240819091724.33730-1-pkshih@realtek.com (mailing list archive)
Headers show
Series wifi: rtw89: use and propagate chanctx properly | expand

Message

Ping-Ke Shih Aug. 19, 2024, 9:17 a.m. UTC
Previously rtw89 hardcode the chanctx to single one, because it only
support one channel at once. Now we are going to support MLO that
we want to support more than one chanctx at the same time, so adjust
the code to propagate chanctx to callee.

The last patch is to add a flag 'support_mlo", which value is decided
at probe stage, and then we can use this flag as clue how to configure
hardware corresponding to operating modes.

Zong-Zhe Yang (8):
  wifi: rtw89: pass chan to rfk_band_changed()
  wifi: rtw89: 8851b: use right chanctx whenever possible in RFK flow
  wifi: rtw89: 8852a: use right chanctx whenever possible in RFK flow
  wifi: rtw89: 8852bx: use right chanctx whenever possible in RFK flow
  wifi: rtw89: 8852c: use right chanctx whenever possible in RFK flow
  wifi: rtw89: 8922a: use right chanctx whenever possible in RFK flow
  wifi: rtw89: rename roc_entity_idx to roc_chanctx_idx
  wifi: rtw89: introduce chip support link number and driver MLO
    capability

 drivers/net/wireless/realtek/rtw89/chan.c     |  12 +-
 drivers/net/wireless/realtek/rtw89/core.c     |  30 +-
 drivers/net/wireless/realtek/rtw89/core.h     |  14 +-
 drivers/net/wireless/realtek/rtw89/fw.c       |  25 +-
 drivers/net/wireless/realtek/rtw89/fw.h       |  17 +-
 drivers/net/wireless/realtek/rtw89/phy.c      |  18 +-
 drivers/net/wireless/realtek/rtw89/phy.h      |   6 +
 drivers/net/wireless/realtek/rtw89/rtw8851b.c |  19 +-
 .../net/wireless/realtek/rtw89/rtw8851b_rfk.c | 138 +++++----
 .../net/wireless/realtek/rtw89/rtw8851b_rfk.h |  18 +-
 drivers/net/wireless/realtek/rtw89/rtw8852a.c |  27 +-
 drivers/net/wireless/realtek/rtw89/rtw8852a.h |   4 +-
 .../net/wireless/realtek/rtw89/rtw8852a_rfk.c | 292 ++++++++++--------
 .../net/wireless/realtek/rtw89/rtw8852a_rfk.h |  17 +-
 drivers/net/wireless/realtek/rtw89/rtw8852b.c |  21 +-
 .../wireless/realtek/rtw89/rtw8852b_common.c  |  15 +-
 .../wireless/realtek/rtw89/rtw8852b_common.h  |  15 +-
 .../net/wireless/realtek/rtw89/rtw8852b_rfk.c | 211 +++++++------
 .../net/wireless/realtek/rtw89/rtw8852b_rfk.h |  20 +-
 .../net/wireless/realtek/rtw89/rtw8852bt.c    |  29 +-
 .../wireless/realtek/rtw89/rtw8852bt_rfk.c    | 188 +++++------
 .../wireless/realtek/rtw89/rtw8852bt_rfk.h    |  20 +-
 drivers/net/wireless/realtek/rtw89/rtw8852c.c |  19 +-
 .../net/wireless/realtek/rtw89/rtw8852c_rfk.c | 162 +++++-----
 .../net/wireless/realtek/rtw89/rtw8852c_rfk.h |  17 +-
 drivers/net/wireless/realtek/rtw89/rtw8922a.c |  26 +-
 26 files changed, 766 insertions(+), 614 deletions(-)