summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorManual Munz <freifunk@somakoma.de>2011-09-19 01:24:03 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-09-19 20:51:51 +0200
commit8c23516fbb209ccf8f8c36268311c721faff29ee (patch)
tree2278e36af35b77f4b4cb5ba402adf1b90c4bacfa /drivers
parentMerge branch 'for-3.1' of git://github.com/padovan/bluetooth-next (diff)
downloadlinux-8c23516fbb209ccf8f8c36268311c721faff29ee.tar.xz
linux-8c23516fbb209ccf8f8c36268311c721faff29ee.zip
b43: Fix beacon problem in ad-hoc mode
In ad-hoc mode, driver b43 does not issue beacons. Signed-off-by: Manual Munz <freifunk@somakoma.de> Tested-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Stable <stable@kernel.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/b43/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 26f1ab840cc7..e293a7921bf0 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -1632,7 +1632,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. */