On Mon, May 12, 2014 at 11:34 AM, Rajkumar Manoharan <rmanohar@xxxxxxxxxxxxxxxx> wrote: > From: Sachin Ahuja <sahuja@xxxxxxxxxxxxxx> > > When STA disconnects, cfg80211 restores the regulatory setting > to world domain. For the drivers that ignore country ie, cfg80211 > should remain in the default country code which is configured > at driver load and should do not be restored to world reg domain. > > Signed-off-by: Sachin Ahuja <sahuja@xxxxxxxxxxxxxx> > Signed-off-by: Rajkumar Manoharan <rmanohar@xxxxxxxxxxxxxxxx> > --- > v2: Removed is_all_countryie_ignore > v3: Removed wdev_lock > net/wireless/sme.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git a/net/wireless/sme.c b/net/wireless/sme.c > index 4bc21a2..031ab4c 100644 > --- a/net/wireless/sme.c > +++ b/net/wireless/sme.c This approach is making the assumption that regulatory hint disconnects should only be issued for devices that use country IEs which I do not think should the place within the SME code, can you instead stuff this handle this in net/wireless/reg.c ? For example -- beacon hints should be cleared even though the regulatory setting on the device is not cleared. Your patch does not address that. Luis -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html