Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90324
b: refs/heads/master
c: c01f9c6
h: refs/heads/master
v: v3
  • Loading branch information
Michael Buesch authored and John W. Linville committed Mar 25, 2008
1 parent b8571c6 commit b2a5c92
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ea8739648cfff4027c3db0f4cee5de87bfd3886
refs/heads/master: c01f9c6f1d5ceffda59a983c95338be45223d155
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/b43/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
b43-y += main.o
b43-y += tables.o
b43-y += tables_nphy.o
b43-$(CONFIG_B43_NPHY) += tables_nphy.o
b43-y += phy.o
b43-y += nphy.o
b43-$(CONFIG_B43_NPHY) += nphy.o
b43-y += sysfs.o
b43-y += xmit.o
b43-y += lo.o
Expand Down
40 changes: 40 additions & 0 deletions trunk/drivers/net/wireless/b43/nphy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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_ */

0 comments on commit b2a5c92

Please sign in to comment.