Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351721
b: refs/heads/master
c: 09f4114
h: refs/heads/master
i:
  351719: 66c9efc
v: v3
  • Loading branch information
Johannes Berg committed Jan 3, 2013
1 parent 3030df4 commit 5ee5c32
Show file tree
Hide file tree
Showing 2 changed files with 8 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: b998e8bb3e1c6eeae5eab9d6a434563270286c3b
refs/heads/master: 09f4114e02aac9cbf40553a17580b07ab29715d8
12 changes: 7 additions & 5 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
unsigned long flags;
struct sk_buff *skb, *tmp;
u32 hw_reconf_flags = 0;
int i;
int i, flushed;

clear_bit(SDATA_STATE_RUNNING, &sdata->state);

Expand All @@ -772,11 +772,13 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
* (because if we remove a STA after ops->remove_interface()
* the driver will have removed the vif info already!)
*
* This is relevant only in AP, WDS and mesh modes, since in
* all other modes we've already removed all stations when
* disconnecting etc.
* This is relevant only in WDS mode, in all other modes we've
* already removed all stations when disconnecting or similar,
* so warn otherwise.
*/
sta_info_flush(sdata);
flushed = sta_info_flush(sdata);
WARN_ON_ONCE((sdata->vif.type != NL80211_IFTYPE_WDS && flushed > 0) ||
(sdata->vif.type == NL80211_IFTYPE_WDS && flushed != 1));

/*
* Don't count this interface for promisc/allmulti while it
Expand Down

0 comments on commit 5ee5c32

Please sign in to comment.