From: Avraham Stern Date: Thu, 22 May 2014 09:17:47 +0000 (+0300) Subject: mac80211: set new interfaces as idle upon init X-Git-Tag: next-20140530~73^2~41^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d3a58df87a2e4c2301ac843604202d290a48440b;p=karo-tx-linux.git 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 Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- 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, sdata->control_port_protocol = cpu_to_be16(ETH_P_PAE); sdata->control_port_no_encrypt = false; sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM; + sdata->vif.bss_conf.idle = true; sdata->noack_map = 0;