diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-10-06 01:50:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-06 16:30:41 -0400 |
commit | 106cb09a145a5c6d8e206af41284c300b13c408c (patch) | |
tree | ad884ee9a44273f8fb6431e83d846df77a0142ae /drivers/net | |
parent | 5e7ee098ce2795e0c2628686dd97fc64bcc11594 (diff) |
b43: define B43_SHM_SH_CHAN_40MHZ
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/b43/phy_common.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index 8674a99356af..72821c456b02 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -186,7 +186,8 @@ enum { | |||
186 | #define B43_SHM_SH_PHYTXNOI 0x006E /* PHY noise directly after TX (lower 8bit only) */ | 186 | #define B43_SHM_SH_PHYTXNOI 0x006E /* PHY noise directly after TX (lower 8bit only) */ |
187 | #define B43_SHM_SH_RFRXSP1 0x0072 /* RF RX SP Register 1 */ | 187 | #define B43_SHM_SH_RFRXSP1 0x0072 /* RF RX SP Register 1 */ |
188 | #define B43_SHM_SH_CHAN 0x00A0 /* Current channel (low 8bit only) */ | 188 | #define B43_SHM_SH_CHAN 0x00A0 /* Current channel (low 8bit only) */ |
189 | #define B43_SHM_SH_CHAN_5GHZ 0x0100 /* Bit set, if 5Ghz channel */ | 189 | #define B43_SHM_SH_CHAN_5GHZ 0x0100 /* Bit set, if 5 Ghz channel */ |
190 | #define B43_SHM_SH_CHAN_40MHZ 0x0200 /* Bit set, if 40 Mhz channel width */ | ||
190 | #define B43_SHM_SH_BCMCFIFOID 0x0108 /* Last posted cookie to the bcast/mcast FIFO */ | 191 | #define B43_SHM_SH_BCMCFIFOID 0x0108 /* Last posted cookie to the bcast/mcast FIFO */ |
191 | /* TSSI information */ | 192 | /* TSSI information */ |
192 | #define B43_SHM_SH_TSSI_CCK 0x0058 /* TSSI for last 4 CCK frames (32bit) */ | 193 | #define B43_SHM_SH_TSSI_CCK 0x0058 /* TSSI for last 4 CCK frames (32bit) */ |
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c index 8f7d7eff2d80..7b2ea6781457 100644 --- a/drivers/net/wireless/b43/phy_common.c +++ b/drivers/net/wireless/b43/phy_common.c | |||
@@ -294,8 +294,10 @@ int b43_switch_channel(struct b43_wldev *dev, unsigned int new_channel) | |||
294 | */ | 294 | */ |
295 | channelcookie = new_channel; | 295 | channelcookie = new_channel; |
296 | if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) | 296 | if (b43_current_band(dev->wl) == IEEE80211_BAND_5GHZ) |
297 | channelcookie |= 0x100; | 297 | channelcookie |= B43_SHM_SH_CHAN_5GHZ; |
298 | //FIXME set 40Mhz flag if required | 298 | /* FIXME: set 40Mhz flag if required */ |
299 | if (0) | ||
300 | channelcookie |= B43_SHM_SH_CHAN_40MHZ; | ||
299 | savedcookie = b43_shm_read16(dev, B43_SHM_SHARED, B43_SHM_SH_CHAN); | 301 | savedcookie = b43_shm_read16(dev, B43_SHM_SHARED, B43_SHM_SH_CHAN); |
300 | b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_CHAN, channelcookie); | 302 | b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_CHAN, channelcookie); |
301 | 303 | ||