Skip to content

Commit

Permalink
[MAC80211]: fix add_interface monitor mode behaviour
Browse files Browse the repository at this point in the history
This makes it behave the same whether we have monitor during operation
or not.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and David S. Miller committed Oct 10, 2007
1 parent 9b8a74e commit 1bec3f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/mac80211/ieee80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,10 @@ static int ieee80211_open(struct net_device *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)
Expand Down

0 comments on commit 1bec3f1

Please sign in to comment.