Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183878
b: refs/heads/master
c: aa4c7b2
h: refs/heads/master
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Jan 22, 2010
1 parent 5bd59a0 commit 5855333
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4bb29f8c390fb7be207ec3f11b9d30ccdf1cb6ac
refs/heads/master: aa4c7b2a2547db95388f795f092ea286fbdd98a1
6 changes: 6 additions & 0 deletions trunk/drivers/net/wireless/b43/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3576,6 +3576,12 @@ static int b43_op_config(struct ieee80211_hw *hw, u32 changed)
dev = wl->current_dev;
phy = &dev->phy;

if (conf_is_ht(conf))
phy->is_40mhz =
(conf_is_ht40_minus(conf) || conf_is_ht40_plus(conf));
else
phy->is_40mhz = false;

b43_mac_suspend(dev);

if (changed & IEEE80211_CONF_CHANGE_RETRY_LIMITS)
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/net/wireless/b43/phy_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ struct b43_phy {
bool supports_2ghz;
bool supports_5ghz;

/* HT info */
bool is_40mhz;

/* GMODE bit enabled? */
bool gmode;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/b43/phy_n.c
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,7 @@ static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev,

b43_phy_write(dev, B43_NPHY_IQLOCAL_CMDGCTL, 0x8AA9);

if (1 /* FIXME: the band width is 20 MHz */)
if (!dev->phy.is_40mhz)
freq = 2500;
else
freq = 5000;
Expand Down

0 comments on commit 5855333

Please sign in to comment.