Skip to content

b43: clean channel handling

Rafał Miłecki b43-dev linux-wireless 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9b43: drop B43_DEFAULT_CHANNELdrivers/net/wireless/b43/phy_common.c drivers/net/wireless/b43/phy_common.h+0 -70 replies
2/9b43: b43_op_config: drop check for core changedrivers/net/wireless/b43/main.c+2 -180 replies
3/9b43: b43_op_config: use IEEE80211_CONF_CHANGE_CHANNELdrivers/net/wireless/b43/main.c+16 -150 replies
4/9b43: PHY: don't force default channel during initdrivers/net/wireless/b43/phy_common.c+3 -40 replies
5/9b43: b43_op_config: set channel info before switching banddrivers/net/wireless/b43/main.c drivers/net/wireless/b43/phy_common.c+2 -20 replies
6/9b43: store current channel using struct cfg80211_chan_defdrivers/net/wireless/b43/main.c drivers/net/wireless/b43/phy_common.c drivers/net/wireless/b43/phy_common.h+9 -20 replies
7/9b43: PHY: drop own channel_freq (get it from chandef when needed)drivers/net/wireless/b43/phy_common.h drivers/net/wireless/b43/phy_ht.c drivers/net/wireless/b43/phy_n.c+15 -120 replies
8/9b43: PHY: drop is_40mhz (get width info from chandef)drivers/net/wireless/b43/main.c drivers/net/wireless/b43/phy_common.c drivers/net/wireless/b43/phy_common.h +1 more+33 -350 replies
9/9b43: PHY: drop channel_type (we can get this info from chandef)drivers/net/wireless/b43/phy_common.c drivers/net/wireless/b43/phy_common.h drivers/net/wireless/b43/phy_n.c +1 more+8 -140 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/9] b43: clean channel handling

This patchset cleans channel handling in the driver which became a bit messy recently. We get rid of too many variables in PHY struct switching to a simple struct cfg80211_chan_def (unsigned int channel is still there because a lot of code depends on it).

This also slightly changes PHY ops to make PHY re-init possible with the current channel (this will be needed for band switching).

This has been basically tested for regressions on the following cards:
14e4:4312 BCM4311 G-PHY rev 8
14e4:4315 BCM4312 LP-PHY rev 1
14e4:4328 BCM4321 N-PHY rev 2
14e4:432b BCM4322 N-PHY rev 4
14e4:4353 BCM43224 N-PHY rev 6
(note 14e4:4312 was never working correctly for me).

John: it's the last "big thing" I wanted for 3.16. It's a bit late, so to minimalize a risk I gave it some testing on many devices. If you manage to get it for 3.16, that will be cool for me. Still, it's up to you, not a big pressure.

Rafa? Mi?ecki (9):
b43: drop B43_DEFAULT_CHANNEL
b43: b43_op_config: drop check for core change
b43: b43_op_config: use IEEE80211_CONF_CHANGE_CHANNEL
b43: PHY: don't force default channel during init
b43: b43_op_config: set channel info before switching band
b43: store current channel using struct cfg80211_chan_def
b43: PHY: drop own channel_freq (get it from chandef when needed)
b43: PHY: drop is_40mhz (get width info from chandef)
b43: PHY: drop channel_type (we can get this info from chandef)

 drivers/net/wireless/b43/main.c        | 46 ++++++------------
 drivers/net/wireless/b43/phy_common.c  | 21 ++++----
 drivers/net/wireless/b43/phy_common.h  | 12 +----
 drivers/net/wireless/b43/phy_ht.c      |  2 +-
 drivers/net/wireless/b43/phy_n.c       | 88 ++++++++++++++++++----------------
 drivers/net/wireless/b43/tables_nphy.c |  2 +-
 6 files changed, 75 insertions(+), 96 deletions(-)
Signature · 1 line
1.8.4.5