Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] nl80211: fix mgmt tx status and testmode reporting for netns
Date: Mon, 24 Jun 2013 15:41:10 +0200	[thread overview]
Message-ID: <1372081270.8439.2.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1372074644-15280-1-git-send-email-michal.kazior@tieto.com>

On Mon, 2013-06-24 at 13:50 +0200, Michal Kazior wrote:
> These two events were sent to the default network
> namespace.
> 
> This caused AP mode in a non-default netns to not
> work correctly. Mgmt tx status was multicasted to
> a different (default) netns instead of the one the
> AP was in.

Good catch.

> @@ -6593,7 +6593,10 @@ void cfg80211_testmode_event(struct sk_buff *skb, gfp_t gfp)
>  
>  	nla_nest_end(skb, data);
>  	genlmsg_end(skb, hdr);
> -	genlmsg_multicast(skb, 0, nl80211_testmode_mcgrp.id, gfp);
> +
> +	rcu_read_lock();
> +	genlmsg_multicast_allns(skb, 0, nl80211_testmode_mcgrp.id, GFP_ATOMIC);
> +	rcu_read_unlock();
>  }
>  EXPORT_SYMBOL(cfg80211_testmode_event);

I think this one should get a wiphy parameter though, to put it into the
right netns.

johannes


  reply	other threads:[~2013-06-24 13:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-24 11:50 [PATCH] nl80211: fix mgmt tx status and testmode reporting for netns Michal Kazior
2013-06-24 13:41 ` Johannes Berg [this message]
2013-06-25  7:17 ` [PATCH v2] " Michal Kazior
2013-06-25  8:50   ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1372081270.8439.2.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=michal.kazior@tieto.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox