Return-Path: Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34401 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727350AbeK2Vav (ORCPT ); Thu, 29 Nov 2018 16:30:51 -0500 Date: Thu, 29 Nov 2018 11:25:57 +0100 From: Greg KH To: Luca Coelho Cc: stable@vger.kernel.org, Emmanuel Grumbach , Luca Coelho Subject: Re: [PATCH v4.4] iwlwifi: mvm: fix regulatory domain update when the firmware starts Message-ID: <20181129102557.GB20297@kroah.com> References: <1543397682106162@kroah.com> <20181129084352.10689-1-luca@coelho.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181129084352.10689-1-luca@coelho.fi> Sender: stable-owner@vger.kernel.org List-ID: On Thu, Nov 29, 2018 at 10:43:52AM +0200, Luca Coelho wrote: > From: Emmanuel Grumbach > > When the firmware starts, it doesn't have any regulatory > information, hence it uses the world wide limitations. The > driver can feed the firmware with previous knowledge that > was kept in the driver, but the firmware may still not > update its internal tables. > > This happens when we start a BSS interface, and then the > firmware can change the regulatory tables based on our > location and it'll use more lenient, location specific > rules. Then, if the firmware is shut down (when the > interface is brought down), and then an AP interface is > created, the firmware will forget the country specific > rules. > > The host will think that we are in a certain country that > may allow channels and will try to teach the firmware about > our location, but the firmware may still not allow to drop > the world wide limitations and apply country specific rules > because it was just re-started. > > In this case, the firmware will reply with MCC_RESP_ILLEGAL > to the MCC_UPDATE_CMD. In that case, iwlwifi needs to let > the upper layers (cfg80211 / hostapd) know that the channel > list they know about has been updated. > > This fixes https://bugzilla.kernel.org/show_bug.cgi?id=201105 > > Cc: stable@vger.kernel.org > Signed-off-by: Emmanuel Grumbach > Signed-off-by: Luca Coelho > --- > drivers/net/wireless/iwlwifi/mvm/mac80211.c | 8 ++++++-- > drivers/net/wireless/iwlwifi/mvm/nvm.c | 5 ++--- > 2 files changed, 8 insertions(+), 5 deletions(-) You forgot the git commit id :( I dug it up and queued this up now. greg k-h