summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/nphy.h
diff options
context:
space:
mode:
authorMichael Buesch2008-01-14 00:05:57 +0100
committerDavid S. Miller2008-01-29 00:09:53 +0100
commitd15913140645d9c23e8b0a9a0bb307ca889688d3 (patch)
tree7bd05a3d5f082d4dc7adcb82d066cb56e35eb847 /drivers/net/wireless/b43/nphy.h
parentb43: Add NPHY radio init code (diff)
downloadkernel-qcow2-linux-d15913140645d9c23e8b0a9a0bb307ca889688d3.tar.gz
kernel-qcow2-linux-d15913140645d9c23e8b0a9a0bb307ca889688d3.tar.xz
kernel-qcow2-linux-d15913140645d9c23e8b0a9a0bb307ca889688d3.zip
b43: Add NPHY channel switch code
This adds code and table data for channel switching on NPHYs. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/nphy.h')
-rw-r--r--drivers/net/wireless/b43/nphy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/nphy.h b/drivers/net/wireless/b43/nphy.h
index 812761d8e1e9..896b46849ba1 100644
--- a/drivers/net/wireless/b43/nphy.h
+++ b/drivers/net/wireless/b43/nphy.h
@@ -12,6 +12,7 @@
#define B43_NPHY_CHANNEL B43_PHY_N(0x005) /* Channel */
#define B43_NPHY_TXERR B43_PHY_N(0x007) /* TX error */
#define B43_NPHY_BANDCTL B43_PHY_N(0x009) /* Band control */
+#define B43_NPHY_BANDCTL_5GHZ 0x0001 /* Use the 5GHz band */
#define B43_NPHY_4WI_ADDR B43_PHY_N(0x00B) /* Four-wire bus address */
#define B43_NPHY_4WI_DATAHI B43_PHY_N(0x00C) /* Four-wire bus data high */
#define B43_NPHY_4WI_DATALO B43_PHY_N(0x00D) /* Four-wire bus data low */
@@ -917,7 +918,7 @@ int b43_phy_initn(struct b43_wldev *dev);
void b43_nphy_radio_turn_on(struct b43_wldev *dev);
void b43_nphy_radio_turn_off(struct b43_wldev *dev);
-void b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel);
+int b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel);
void b43_nphy_xmitpower(struct b43_wldev *dev);
void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna);