diff options
| -rw-r--r-- | drivers/net/wireless/b43/phy_ht.c | 11 | ||||
| -rw-r--r-- | drivers/net/wireless/b43/phy_ht.h | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/phy_ht.c b/drivers/net/wireless/b43/phy_ht.c index c0e436c16866..4d6345e8ee6b 100644 --- a/drivers/net/wireless/b43/phy_ht.c +++ b/drivers/net/wireless/b43/phy_ht.c | |||
| @@ -212,6 +212,13 @@ static void b43_phy_ht_force_rf_sequence(struct b43_wldev *dev, u16 rf_seq) | |||
| 212 | b43_phy_write(dev, B43_PHY_HT_RF_SEQ_MODE, save_seq_mode); | 212 | b43_phy_write(dev, B43_PHY_HT_RF_SEQ_MODE, save_seq_mode); |
| 213 | } | 213 | } |
| 214 | 214 | ||
| 215 | static void b43_phy_ht_read_clip_detection(struct b43_wldev *dev, u16 *clip_st) | ||
| 216 | { | ||
| 217 | clip_st[0] = b43_phy_read(dev, B43_PHY_HT_C1_CLIP1THRES); | ||
| 218 | clip_st[1] = b43_phy_read(dev, B43_PHY_HT_C2_CLIP1THRES); | ||
| 219 | clip_st[2] = b43_phy_read(dev, B43_PHY_HT_C3_CLIP1THRES); | ||
| 220 | } | ||
| 221 | |||
| 215 | static void b43_phy_ht_bphy_init(struct b43_wldev *dev) | 222 | static void b43_phy_ht_bphy_init(struct b43_wldev *dev) |
| 216 | { | 223 | { |
| 217 | unsigned int i; | 224 | unsigned int i; |
| @@ -335,6 +342,7 @@ static void b43_phy_ht_op_prepare_structs(struct b43_wldev *dev) | |||
| 335 | static int b43_phy_ht_op_init(struct b43_wldev *dev) | 342 | static int b43_phy_ht_op_init(struct b43_wldev *dev) |
| 336 | { | 343 | { |
| 337 | u16 tmp; | 344 | u16 tmp; |
| 345 | u16 clip_state[3]; | ||
| 338 | 346 | ||
| 339 | b43_phy_ht_tables_init(dev); | 347 | b43_phy_ht_tables_init(dev); |
| 340 | 348 | ||
| @@ -443,7 +451,8 @@ static int b43_phy_ht_op_init(struct b43_wldev *dev) | |||
| 443 | 451 | ||
| 444 | /* TODO: PHY op on reg 0xb0 */ | 452 | /* TODO: PHY op on reg 0xb0 */ |
| 445 | 453 | ||
| 446 | /* TODO: PHY ops on regs 0x40e, 0x44e, 0x48e */ | 454 | /* TODO: Should we restore it? Or store it in global PHY info? */ |
| 455 | b43_phy_ht_read_clip_detection(dev, clip_state); | ||
| 447 | 456 | ||
| 448 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) | 457 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) |
| 449 | b43_phy_ht_bphy_init(dev); | 458 | b43_phy_ht_bphy_init(dev); |
diff --git a/drivers/net/wireless/b43/phy_ht.h b/drivers/net/wireless/b43/phy_ht.h index 0661ae266101..6544c4293b34 100644 --- a/drivers/net/wireless/b43/phy_ht.h +++ b/drivers/net/wireless/b43/phy_ht.h | |||
| @@ -19,6 +19,10 @@ | |||
| 19 | #define B43_PHY_HT_BW5 0x1D2 | 19 | #define B43_PHY_HT_BW5 0x1D2 |
| 20 | #define B43_PHY_HT_BW6 0x1D3 | 20 | #define B43_PHY_HT_BW6 0x1D3 |
| 21 | 21 | ||
| 22 | #define B43_PHY_HT_C1_CLIP1THRES B43_PHY_OFDM(0x00E) | ||
| 23 | #define B43_PHY_HT_C2_CLIP1THRES B43_PHY_OFDM(0x04E) | ||
| 24 | #define B43_PHY_HT_C3_CLIP1THRES B43_PHY_OFDM(0x08E) | ||
| 25 | |||
| 22 | #define B43_PHY_HT_RF_SEQ_MODE B43_PHY_EXTG(0x000) | 26 | #define B43_PHY_HT_RF_SEQ_MODE B43_PHY_EXTG(0x000) |
| 23 | #define B43_PHY_HT_RF_SEQ_TRIG B43_PHY_EXTG(0x003) | 27 | #define B43_PHY_HT_RF_SEQ_TRIG B43_PHY_EXTG(0x003) |
| 24 | #define B43_PHY_HT_RF_SEQ_TRIG_RX2TX 0x0001 /* RX2TX */ | 28 | #define B43_PHY_HT_RF_SEQ_TRIG_RX2TX 0x0001 /* RX2TX */ |
