diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/b43/Makefile | 4 | ||||
-rw-r--r-- | drivers/net/wireless/b43/nphy.h | 40 |
2 files changed, 42 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/Makefile b/drivers/net/wireless/b43/Makefile index ac1329dba045..ae11fe4c0be6 100644 --- a/drivers/net/wireless/b43/Makefile +++ b/drivers/net/wireless/b43/Makefile | |||
@@ -1,8 +1,8 @@ | |||
1 | b43-y += main.o | 1 | b43-y += main.o |
2 | b43-y += tables.o | 2 | b43-y += tables.o |
3 | b43-y += tables_nphy.o | 3 | b43-$(CONFIG_B43_NPHY) += tables_nphy.o |
4 | b43-y += phy.o | 4 | b43-y += phy.o |
5 | b43-y += nphy.o | 5 | b43-$(CONFIG_B43_NPHY) += nphy.o |
6 | b43-y += sysfs.o | 6 | b43-y += sysfs.o |
7 | b43-y += xmit.o | 7 | b43-y += xmit.o |
8 | b43-y += lo.o | 8 | b43-y += lo.o |
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 | ||
920 | struct b43_wldev; | 920 | struct b43_wldev; |
921 | 921 | ||
922 | |||
923 | #ifdef CONFIG_B43_NPHY | ||
924 | /* N-PHY support enabled */ | ||
925 | |||
922 | int b43_phy_initn(struct b43_wldev *dev); | 926 | int b43_phy_initn(struct b43_wldev *dev); |
923 | 927 | ||
924 | void b43_nphy_radio_turn_on(struct b43_wldev *dev); | 928 | void b43_nphy_radio_turn_on(struct b43_wldev *dev); |
@@ -929,4 +933,40 @@ int b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel); | |||
929 | void b43_nphy_xmitpower(struct b43_wldev *dev); | 933 | void b43_nphy_xmitpower(struct b43_wldev *dev); |
930 | void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna); | 934 | void 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 | |||
941 | static inline | ||
942 | int b43_phy_initn(struct b43_wldev *dev) | ||
943 | { | ||
944 | return -EOPNOTSUPP; | ||
945 | } | ||
946 | |||
947 | static inline | ||
948 | void b43_nphy_radio_turn_on(struct b43_wldev *dev) | ||
949 | { | ||
950 | } | ||
951 | static inline | ||
952 | void b43_nphy_radio_turn_off(struct b43_wldev *dev) | ||
953 | { | ||
954 | } | ||
955 | |||
956 | static inline | ||
957 | int b43_nphy_selectchannel(struct b43_wldev *dev, u8 channel) | ||
958 | { | ||
959 | return -ENOSYS; | ||
960 | } | ||
961 | |||
962 | static inline | ||
963 | void b43_nphy_xmitpower(struct b43_wldev *dev) | ||
964 | { | ||
965 | } | ||
966 | static inline | ||
967 | void 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_ */ |