Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cf6a31e authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville
Browse files

b43: use b43_is_mode() call



We must use the b43_is_mode() call to check the current interface
operation mode.

Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5042c507
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -3771,7 +3771,7 @@ static void b43_set_synth_pu_delay(struct b43_wldev *dev, bool idle)
		pu_delay = 3700;
		pu_delay = 3700;
	else
	else
		pu_delay = 1050;
		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;
		pu_delay = 500;
	if ((dev->phy.radio_ver == 0x2050) && (dev->phy.radio_rev == 8))
	if ((dev->phy.radio_ver == 0x2050) && (dev->phy.radio_rev == 8))
		pu_delay = max(pu_delay, (u16)2400);
		pu_delay = max(pu_delay, (u16)2400);
@@ -3785,7 +3785,7 @@ static void b43_set_pretbtt(struct b43_wldev *dev)
	u16 pretbtt;
	u16 pretbtt;


	/* The time value is in microseconds. */
	/* 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;
		pretbtt = 2;
	} else {
	} else {
		if (dev->phy.type == B43_PHYTYPE_A)
		if (dev->phy.type == B43_PHYTYPE_A)