Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129749
b: refs/heads/master
c: dcebf45
h: refs/heads/master
i:
  129747: 9221a38
v: v3
  • Loading branch information
Pavel Roskin authored and John W. Linville committed Jan 12, 2009
1 parent c120ac6 commit a5a17e7
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: 4fb7404e0eaf574c00d01d2b1ce2615229b350cd
refs/heads/master: dcebf45cdc8384be9009b2b9a825054b64742768
3 changes: 2 additions & 1 deletion trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata,
return 0;

/* Setting ad-hoc mode on non-IBSS channel is not supported. */
if (sdata->local->oper_channel->flags & IEEE80211_CHAN_NO_IBSS)
if (sdata->local->oper_channel->flags & IEEE80211_CHAN_NO_IBSS &&
type == NL80211_IFTYPE_ADHOC)
return -EOPNOTSUPP;

/*
Expand Down

0 comments on commit a5a17e7

Please sign in to comment.