Search Linux Wireless

[PATCH] mac80211: fix add_interface monitor mode behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This makes it behave the same whether we have monitor during operation
or not.

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

---
will probably crash a few drivers where I pointed out the bugs a few
weeks ago...

--- wireless-dev.orig/net/mac80211/ieee80211.c	2007-07-26 17:39:08.567965155 +0200
+++ wireless-dev/net/mac80211/ieee80211.c	2007-07-26 17:39:34.467965155 +0200
@@ -2708,7 +2708,10 @@ static int ieee80211_open(struct net_dev
 
 	conf.if_id = dev->ifindex;
 	conf.type = sdata->type;
-	conf.mac_addr = dev->dev_addr;
+	if (sdata->type == IEEE80211_IF_TYPE_MNTR)
+		conf.mac_addr = NULL;
+	else
+		conf.mac_addr = dev->dev_addr;
 	res = local->ops->add_interface(local_to_hw(local), &conf);
 	if (res) {
 		if (sdata->type == IEEE80211_IF_TYPE_MNTR)


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux