Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314806
b: refs/heads/master
c: ac4d82f
h: refs/heads/master
v: v3
  • Loading branch information
Pontus Fuchs authored and Johannes Berg committed Jun 13, 2012
1 parent 30714db commit 3b93c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: e979e33c3972044e1be5e46552a02c3b9c0bc7a7
refs/heads/master: ac4d82fa01c194dba10b9a7c35449ba36eb642fc
3 changes: 2 additions & 1 deletion trunk/net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,8 @@ static int ieee80211_set_channel(struct wiphy *wiphy,
case CHAN_MODE_HOPPING:
return -EBUSY;
case CHAN_MODE_FIXED:
if (local->oper_channel != chan)
if (local->oper_channel != chan ||
(!sdata && local->_oper_channel_type != channel_type))
return -EBUSY;
if (!sdata && local->_oper_channel_type == channel_type)
return 0;
Expand Down

0 comments on commit 3b93c98

Please sign in to comment.