aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/nphy.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/nphy.h')
-rw-r--r--drivers/net/wireless/b43/nphy.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/nphy.h b/drivers/net/wireless/b43/nphy.h
index 5d95118b8193..faf46b9cbf1b 100644
--- a/drivers/net/wireless/b43/nphy.h
+++ b/drivers/net/wireless/b43/nphy.h
@@ -919,6 +919,10 @@
919 919
920struct b43_wldev; 920struct b43_wldev;
921 921
922
923#ifdef CONFIG_B43_NPHY
924/* N-PHY support enabled */
925
922int b43_phy_initn(struct b43_wldev *dev); 926int b43_phy_initn(struct b43_wldev *dev);
923 927
924void b43_nphy_radio_turn_on(struct b43_wldev *dev); 928void b43_nphy_radio_turn_on(struct b43_wldev *dev);
@@ -929,4 +933,40 @@ int b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel);
929void b43_nphy_xmitpower(struct b43_wldev *dev); 933void b43_nphy_xmitpower(struct b43_wldev *dev);
930void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna); 934void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna);
931 935
936
937#else /* CONFIG_B43_NPHY */
938/* N-PHY support disabled */
939
940
941static inline
942int b43_phy_initn(struct b43_wldev *dev)
943{
944 return -EOPNOTSUPP;
945}
946
947static inline
948void b43_nphy_radio_turn_on(struct b43_wldev *dev)
949{
950}
951static inline
952void b43_nphy_radio_turn_off(struct b43_wldev *dev)
953{
954}
955
956static inline
957int b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel)
958{
959 return -ENOSYS;
960}
961
962static inline
963void b43_nphy_xmitpower(struct b43_wldev *dev)
964{
965}
966static inline
967void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna)
968{
969}
970
971#endif /* CONFIG_B43_NPHY */
932#endif /* B43_NPHY_H_ */ 972#endif /* B43_NPHY_H_ */