Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314877
b: refs/heads/master
c: 371a255
h: refs/heads/master
i:
  314875: 84295b6
v: v3
  • Loading branch information
Johannes Berg committed Jun 26, 2012
1 parent 05f040f commit 871e8d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 171243612f1612402fbf83f3f034a1beefcdea61
refs/heads/master: 371a255e863857f988a91a3850d6feeaa4f3c536
8 changes: 3 additions & 5 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,12 @@ static int ieee80211_check_concurrent_iface(struct ieee80211_sub_if_data *sdata,
{
struct ieee80211_local *local = sdata->local;
struct ieee80211_sub_if_data *nsdata;
struct net_device *dev = sdata->dev;

ASSERT_RTNL();

/* we hold the RTNL here so can safely walk the list */
list_for_each_entry(nsdata, &local->interfaces, list) {
struct net_device *ndev = nsdata->dev;

if (ndev != dev && ieee80211_sdata_running(nsdata)) {
if (nsdata != sdata && ieee80211_sdata_running(nsdata)) {
/*
* Allow only a single IBSS interface to be up at any
* time. This is restricted because beacon distribution
Expand All @@ -124,7 +121,8 @@ static int ieee80211_check_concurrent_iface(struct ieee80211_sub_if_data *sdata,
* The remaining checks are only performed for interfaces
* with the same MAC address.
*/
if (!ether_addr_equal(dev->dev_addr, ndev->dev_addr))
if (!ether_addr_equal(sdata->vif.addr,
nsdata->vif.addr))
continue;

/*
Expand Down

0 comments on commit 871e8d0

Please sign in to comment.