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 | 86e3679130d3b325b9532ffd002ae31559de0ea5 (patch) | |
tree | 5ea8b6867078a974baa98cc68115a0426a086319 /package/b43/src/nphy.h | |
parent | 47e2253544b7e3e88b1cebd6b7e678ab2a245a22 (diff) | |
download | master-187ad058-86e3679130d3b325b9532ffd002ae31559de0ea5.tar.gz master-187ad058-86e3679130d3b325b9532ffd002ae31559de0ea5.tar.bz2 master-187ad058-86e3679130d3b325b9532ffd002ae31559de0ea5.zip |
Update b43 from compat-wireless-2008-05-26 codebase
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11358 3c298f89-4303-0410-b956-a3cf2f4a3e73
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_ */ |