Skip to content

wifi: prepare shared code for brcmbmac

Ragul Balaji brcm80211 linux-wireless lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 13 repliesIn review
  2. v110 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Move brcmfmac changes here too.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11wifi: brcmsmac: make d11.h self-containeddrivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.h +4 more+45 -491 reply
2/11wifi: brcm80211: move d11.h to the shared include directorydrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c +3 more+5 -51 reply
3/11wifi: brcmsmac: look up OFDM rates in rate.cdrivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_hal.h drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c +1 more+19 -261 reply
4/11wifi: brcmsmac: give the rate tables and helpers a brcmu_ prefixdrivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.h+121 -1221 reply
5/11wifi: brcmsmac: round short-GI L-SIG lengths up to whole symbolsdrivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c+5 -32 replies
6/11wifi: brcmsmac: pass the band to the PLCP and frame timing helpersdrivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h+150 -1401 reply
7/11wifi: brcmsmac: move the PLCP and frame timing helpers to rate.cdrivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c +1 more+518 -5031 reply
8/11wifi: brcmsmac: move the RTS rate selection to rate.cdrivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.h+68 -531 reply
9/11wifi: brcm80211: move the rate helpers of brcmsmac to brcmutildrivers/net/wireless/broadcom/brcm80211/brcmsmac/Makefile drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c +5 more+118 -961 reply
10/11wifi: brcm80211: move the channel and rate tables of brcmsmac to brcmutildrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.h drivers/net/wireless/broadcom/brcm80211/brcmutil/Makefile +2 more+185 -1431 reply
11/11wifi: brcm80211: move the USB bootloader definitions to a shared headerdrivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c drivers/net/wireless/broadcom/brcm80211/include/brcm_usb_rdl.h+79 -671 reply

Reviews trailers per patch

7 of 11 patches have a Reviewed-by or Acked-by.

PatchArend van Spriel
1/11A-b
2/11A-b
3/11A-b
4/11A-b
5/11
6/11A-b
7/11A-b
8/11
9/11
10/11
11/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH wireless-next v2 00/11] wifi: prepare shared code for brcmbmac

These patches move brcmsmac's d11 core definitions, its rate, PLCP, frame timing and RTS rate helpers, and its channel and rate tables to the shared brcm80211 directories, so that the brcmbmac driver for the BCM4323x USB adapters, sent separately, can share them instead of copying them:

The last patch moves brcmfmac's USB bootloader definitions to a shared header.

Apart from patch 5, these patches change no behaviour. Compile-tested only for brcmsmac and brcmfmac.

Changelog v2:
- Move brcmfmac changes here too.

Ragul Balaji (11):
wifi: brcmsmac: make d11.h self-contained
wifi: brcm80211: move d11.h to the shared include directory
wifi: brcmsmac: look up OFDM rates in rate.c
wifi: brcmsmac: give the rate tables and helpers a brcmu_ prefix
wifi: brcmsmac: round short-GI L-SIG lengths up to whole symbols
wifi: brcmsmac: pass the band to the PLCP and frame timing helpers
wifi: brcmsmac: move the PLCP and frame timing helpers to rate.c
wifi: brcmsmac: move the RTS rate selection to rate.c
wifi: brcm80211: move the rate helpers of brcmsmac to brcmutil
wifi: brcm80211: move the channel and rate tables of brcmsmac to
brcmutil
wifi: brcm80211: move the USB bootloader definitions to a shared
header

 .../broadcom/brcm80211/brcmfmac/usb.c         |   68 +-
 .../broadcom/brcm80211/brcmsmac/Makefile      |    1 -
 .../broadcom/brcm80211/brcmsmac/ampdu.c       |   34 +-
 .../broadcom/brcm80211/brcmsmac/dma.h         |   27 -
 .../broadcom/brcm80211/brcmsmac/mac80211_if.c |  153 +--
 .../broadcom/brcm80211/brcmsmac/mac80211_if.h |    9 +-
 .../broadcom/brcm80211/brcmsmac/main.c        |  741 ++----------
 .../broadcom/brcm80211/brcmsmac/main.h        |   26 +-
 .../broadcom/brcm80211/brcmsmac/phy/phy_cmn.c |   17 -
 .../broadcom/brcm80211/brcmsmac/phy/phy_hal.h |    3 +-
 .../broadcom/brcm80211/brcmsmac/pub.h         |   35 +-
 .../broadcom/brcm80211/brcmsmac/rate.c        |  514 --------
 .../broadcom/brcm80211/brcmsmac/stf.c         |    4 +-
 .../broadcom/brcm80211/brcmutil/Makefile      |    2 +-
 .../broadcom/brcm80211/brcmutil/band.c        |  140 +++
 .../broadcom/brcm80211/brcmutil/rate.c        | 1077 +++++++++++++++++
 .../broadcom/brcm80211/include/brcm_usb_rdl.h |   78 ++
 .../broadcom/brcm80211/include/brcmu_band.h   |   26 +
 .../{brcmsmac/rate.h => include/brcmu_rate.h} |  170 ++-
 .../brcm80211/{brcmsmac => include}/d11.h     |   43 +-
 20 files changed, 1637 insertions(+), 1531 deletions(-)
 delete mode 100644 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c
 create mode 100644 drivers/net/wireless/broadcom/brcm80211/brcmutil/band.c
 create mode 100644 drivers/net/wireless/broadcom/brcm80211/brcmutil/rate.c
 create mode 100644 drivers/net/wireless/broadcom/brcm80211/include/brcm_usb_rdl.h
 create mode 100644 drivers/net/wireless/broadcom/brcm80211/include/brcmu_band.h
 rename drivers/net/wireless/broadcom/brcm80211/{brcmsmac/rate.h => include/brcmu_rate.h} (51%)
 rename drivers/net/wireless/broadcom/brcm80211/{brcmsmac => include}/d11.h (97%)

base-commit: 3c311bf321442d4c4f452a1a08bc9efce242a1f9

Signature · 1 line
2.53.0