Skip to content

Commit

Permalink
b43: use b43_is_mode() call
Browse files Browse the repository at this point in the history
We must use the b43_is_mode() call to check the current interface
operation mode.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Michael Buesch authored and John W. Linville committed Apr 8, 2008
1 parent 5042c50 commit 8cf6a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/b43/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3771,7 +3771,7 @@ static void b43_set_synth_pu_delay(struct b43_wldev *dev, bool idle)
pu_delay = 3700;
else
pu_delay = 1050;
if ((dev->wl->if_type == IEEE80211_IF_TYPE_IBSS) || idle)
if (b43_is_mode(dev->wl, IEEE80211_IF_TYPE_IBSS) || idle)
pu_delay = 500;
if ((dev->phy.radio_ver == 0x2050) && (dev->phy.radio_rev == 8))
pu_delay = max(pu_delay, (u16)2400);
Expand All @@ -3785,7 +3785,7 @@ static void b43_set_pretbtt(struct b43_wldev *dev)
u16 pretbtt;

/* The time value is in microseconds. */
if (dev->wl->if_type == IEEE80211_IF_TYPE_IBSS) {
if (b43_is_mode(dev->wl, IEEE80211_IF_TYPE_IBSS)) {
pretbtt = 2;
} else {
if (dev->phy.type == B43_PHYTYPE_A)
Expand Down

0 comments on commit 8cf6a31

Please sign in to comment.