aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-10-19 09:44:42 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-10-26 06:57:06 -0400
commit1041638f2bba0f1de75e66086d50fb1251d64dcf (patch)
tree95d5ea3a83302d27887dcdc2d425682216937f3f /net/mac80211/util.c
parent7b20b8e8d70a0f4f18c254b42e5b157f93731e9f (diff)
mac80211: add explicit AP/GO driver operations
Depending on the driver, a lot of setup may be necessary to start operating as an AP, some of which may fail. Add an explicit AP start driver method to make such failures easier to handle, and add an AP stop driver method for symmetry. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index ea8a6744a9db..dd0e6f20fc51 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1467,9 +1467,13 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1467 case NL80211_IFTYPE_AP: 1467 case NL80211_IFTYPE_AP:
1468 changed |= BSS_CHANGED_SSID; 1468 changed |= BSS_CHANGED_SSID;
1469 1469
1470 if (sdata->vif.type == NL80211_IFTYPE_AP) 1470 if (sdata->vif.type == NL80211_IFTYPE_AP) {
1471 changed |= BSS_CHANGED_AP_PROBE_RESP; 1471 changed |= BSS_CHANGED_AP_PROBE_RESP;
1472 1472
1473 if (rcu_access_pointer(sdata->u.ap.beacon))
1474 drv_start_ap(local, sdata);
1475 }
1476
1473 /* fall through */ 1477 /* fall through */
1474 case NL80211_IFTYPE_MESH_POINT: 1478 case NL80211_IFTYPE_MESH_POINT:
1475 changed |= BSS_CHANGED_BEACON | 1479 changed |= BSS_CHANGED_BEACON |