linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: set new interfaces as idle upon init
@ 2014-05-22  9:17 Emmanuel Grumbach
  2014-05-28 14:04 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Grumbach @ 2014-05-22  9:17 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Avraham Stern, Emmanuel Grumbach

From: Avraham Stern <avraham.stern@intel.com>

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>
---
 net/mac80211/iface.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 69b656b..7552db2 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -1296,6 +1296,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;
 
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mac80211: set new interfaces as idle upon init
  2014-05-22  9:17 [PATCH] mac80211: set new interfaces as idle upon init Emmanuel Grumbach
@ 2014-05-28 14:04 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2014-05-28 14:04 UTC (permalink / raw)
  To: Emmanuel Grumbach; +Cc: linux-wireless, Avraham Stern

On Thu, 2014-05-22 at 12:17 +0300, Emmanuel Grumbach wrote:
> From: Avraham Stern <avraham.stern@intel.com>
> 
> 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.

Applied.

johannes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-28 14:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-22  9:17 [PATCH] mac80211: set new interfaces as idle upon init Emmanuel Grumbach
2014-05-28 14:04 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).