Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136124
b: refs/heads/master
c: b5bde37
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 28, 2009
1 parent 1c7b9e0 commit a56251e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: cee075a24eec64f1f5b2b3b14753b2d4b8ecce55
refs/heads/master: b5bde374f0f61f5d97114d400ade8fc96bf6f10d
12 changes: 3 additions & 9 deletions trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,6 @@ int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed)
if (WARN_ON(!netif_running(sdata->dev)))
return 0;

if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_AP_VLAN))
return -EINVAL;

if (!local->ops->config_interface)
return 0;

memset(&conf, 0, sizeof(conf));

if (sdata->vif.type == NL80211_IFTYPE_STATION)
Expand All @@ -183,6 +177,9 @@ int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed)
return -EINVAL;
}

if (!local->ops->config_interface)
return 0;

switch (sdata->vif.type) {
case NL80211_IFTYPE_AP:
case NL80211_IFTYPE_ADHOC:
Expand Down Expand Up @@ -224,9 +221,6 @@ int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed)
}
}

if (WARN_ON(!conf.bssid && (changed & IEEE80211_IFCC_BSSID)))
return -EINVAL;

conf.changed = changed;

return local->ops->config_interface(local_to_hw(local),
Expand Down

0 comments on commit a56251e

Please sign in to comment.