From patchwork Tue Apr 19 05:00:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 66070 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1647982qge; Mon, 18 Apr 2016 22:01:29 -0700 (PDT) X-Received: by 10.98.31.21 with SMTP id f21mr1303573pff.134.1461042086878; Mon, 18 Apr 2016 22:01:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vq9si4494799pab.209.2016.04.18.22.01.26; Mon, 18 Apr 2016 22:01:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752520AbcDSFBU (ORCPT + 29 others); Tue, 19 Apr 2016 01:01:20 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34318 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752442AbcDSFBS (ORCPT ); Tue, 19 Apr 2016 01:01:18 -0400 Received: by mail-pf0-f179.google.com with SMTP id c20so2738754pfc.1 for ; Mon, 18 Apr 2016 22:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WPgY6jTIFJVHgPQOtjkR4XyJjDY86QiK+Gc+XorjfoI=; b=K5ZCOZ4uGXMQYhAkl2wefpauM79RN6LzuhTjSbFPV5+sYLNOA1jAJBdG1i4Zl3+OXV Fzz8HNXbk+nqatCgD5DCLsiMxAPr3zbHIL8yNbycBlFdHUS+CoYWvdpVi6c4c/5WZsoj 4fWPJlf5EORioW+cyX1/nc0MoFwufd68WrrfQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WPgY6jTIFJVHgPQOtjkR4XyJjDY86QiK+Gc+XorjfoI=; b=Z/pezpIIyBblDZ1Qw6J5wCv6ARsrXnVgEtQueu2Oqb2t0I5tpQ1a3XGFhT1ePwrVbg wlGYlY5uc48yoqOWqePC3TL2LKmPmt45yHJO7Uy4/SiayH14epXbrsfFFwnOg3jQNtAY B1JZv3k8hGf6SVjvD2WInZBwzSjP9TsRdKj+6hCvmHHowJ1li+XfWncnqXIW0ucn4R0D SZ7MPKymdXzFvxe0SywN88iX+ilBsHb+yxL/b4lir1TjVbgec0c/y7wyUEzSBhs932Ns gKdEVRif0GFUEh3z0TIIgbXGSC3Gk9D4n2RxIh2SMj9do1zJT9jAjM1dBigVxz9YTp7P kKqA== X-Gm-Message-State: AOPr4FVQUjoFnUCHB7uwCQGX9XvqNYq3ZYiWnj0tVClJVB0NSNDaWcXKjAAVXYc4R1orbny5 X-Received: by 10.98.53.6 with SMTP id c6mr1287438pfa.57.1461042077733; Mon, 18 Apr 2016 22:01:17 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id kh2sm20274686pad.9.2016.04.18.22.01.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Apr 2016 22:01:17 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: Pontus Fuchs , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 16/18] wcn36xx: Delete BSS before idling link Date: Mon, 18 Apr 2016 22:00:54 -0700 Message-Id: <1461042056-10607-17-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1461042056-10607-1-git-send-email-bjorn.andersson@linaro.org> References: <1461042056-10607-1-git-send-email-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When disabling the beacon we must delete the bss before idling the link. Signed-off-by: Bjorn Andersson --- Changes since v2: - Added this patch to the series drivers/net/wireless/ath/wcn36xx/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.5.0 diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index c0ba7b0775b3..680217506b3d 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -779,9 +779,9 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, wcn36xx_smd_set_link_st(wcn, vif->addr, vif->addr, link_state); } else { + wcn36xx_smd_delete_bss(wcn, vif); wcn36xx_smd_set_link_st(wcn, vif->addr, vif->addr, WCN36XX_HAL_LINK_IDLE_STATE); - wcn36xx_smd_delete_bss(wcn, vif); } } out: