2011-09-18 23:24:29

by Larry Finger

[permalink] [raw]
Subject: [PATCH] b43: Fix beacon problem in ad-hoc mode

From: Manual Munz <[email protected]>

In ad-hoc mode, driver b43 does not issue beacons.

Signed-off-by: Manual Munz <[email protected]>
Tested-by: Larry Finger <[email protected]>
Signed-off-by: Larry Finger <[email protected]>
Cc: Stable <[email protected]>
---

drivers/net/wireless/b43/main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 2407702..56fa3a3 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -1637,7 +1637,8 @@ static void handle_irq_beacon(struct b43_wldev *dev)
u32 cmd, beacon0_valid, beacon1_valid;

if (!b43_is_mode(wl, NL80211_IFTYPE_AP) &&
- !b43_is_mode(wl, NL80211_IFTYPE_MESH_POINT))
+ !b43_is_mode(wl, NL80211_IFTYPE_MESH_POINT) &&
+ !b43_is_mode(wl, NL80211_IFTYPE_ADHOC))
return;

/* This is the bottom half of the asynchronous beacon update. */
--
1.7.6.1