diff options
author | Peter Denison <openwrt@marshadder.org> | 2008-06-04 19:47:48 +0000 |
---|---|---|
committer | Peter Denison <openwrt@marshadder.org> | 2008-06-04 19:47:48 +0000 |
commit | b2a1f5e79bd22acba7d88089904cfa78adc5b46f (patch) | |
tree | aebbf69ea17a65b63b840390ead0e106ec2f5fc6 /package/b43/src/nphy.h | |
parent | e8620fa5aa1e1cc71f909f938c01207f22aa1b68 (diff) | |
download | upstream-b2a1f5e79bd22acba7d88089904cfa78adc5b46f.tar.gz upstream-b2a1f5e79bd22acba7d88089904cfa78adc5b46f.tar.bz2 upstream-b2a1f5e79bd22acba7d88089904cfa78adc5b46f.zip |
Update b43 from compat-wireless-2008-05-26 codebase
SVN-Revision: 11358
Diffstat (limited to 'package/b43/src/nphy.h')
-rw-r--r-- | package/b43/src/nphy.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/package/b43/src/nphy.h b/package/b43/src/nphy.h index 5d95118b81..faf46b9cbf 100644 --- a/package/b43/src/nphy.h +++ b/package/b43/src/nphy.h @@ -919,6 +919,10 @@ struct b43_wldev; + +#ifdef CONFIG_B43_NPHY +/* N-PHY support enabled */ + int b43_phy_initn(struct b43_wldev *dev); void b43_nphy_radio_turn_on(struct b43_wldev *dev); @@ -929,4 +933,40 @@ 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); + +#else /* CONFIG_B43_NPHY */ +/* N-PHY support disabled */ + + +static inline +int b43_phy_initn(struct b43_wldev *dev) +{ + return -EOPNOTSUPP; +} + +static inline +void b43_nphy_radio_turn_on(struct b43_wldev *dev) +{ +} +static inline +void b43_nphy_radio_turn_off(struct b43_wldev *dev) +{ +} + +static inline +int b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel) +{ + return -ENOSYS; +} + +static inline +void b43_nphy_xmitpower(struct b43_wldev *dev) +{ +} +static inline +void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna) +{ +} + +#endif /* CONFIG_B43_NPHY */ #endif /* B43_NPHY_H_ */ |