diff options
author | Avraham Stern <avraham.stern@intel.com> | 2014-05-22 05:17:47 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-05-28 10:22:49 -0400 |
commit | d3a58df87a2e4c2301ac843604202d290a48440b (patch) | |
tree | bba6b103bd5bb5c65583a84d3133d4d83d1a0b0c /net/mac80211/iface.c | |
parent | abd43a6a68b2f69821eef3daf789242b262ba2c0 (diff) |
mac80211: set new interfaces as idle upon init
Mark new interfaces as idle to allow operations that require that
interfaces are idle to take place. Interface types that are always
not idle (like AP interfaces) will be set as not idle when they are
assigned a channel context.
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Emmanuel Grumbach<emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index fd0aa9328aff..81a8e2a0b6aa 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -1286,6 +1286,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, | |||
1286 | sdata->control_port_protocol = cpu_to_be16(ETH_P_PAE); | 1286 | sdata->control_port_protocol = cpu_to_be16(ETH_P_PAE); |
1287 | sdata->control_port_no_encrypt = false; | 1287 | sdata->control_port_no_encrypt = false; |
1288 | sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM; | 1288 | sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM; |
1289 | sdata->vif.bss_conf.idle = true; | ||
1289 | 1290 | ||
1290 | sdata->noack_map = 0; | 1291 | sdata->noack_map = 0; |
1291 | 1292 | ||