From patchwork Tue Mar 29 06:06:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 8682571 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ACA58C0553 for ; Tue, 29 Mar 2016 06:09:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCD982017D for ; Tue, 29 Mar 2016 06:09:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F1B922014A for ; Tue, 29 Mar 2016 06:09:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756030AbcC2GJJ (ORCPT ); Tue, 29 Mar 2016 02:09:09 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:36157 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755985AbcC2GGv (ORCPT ); Tue, 29 Mar 2016 02:06:51 -0400 Received: by mail-pf0-f175.google.com with SMTP id u190so6576882pfb.3 for ; Mon, 28 Mar 2016 23:06:51 -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=hqA+WKglXT46Yr/dDJag5RHQU0xsFpT0zzhPYTiHQgg=; b=iX202Zulb1LAxuQ1EGBGFmIovgrFpxmJz1HUbuKnkCZYMSCzy0zdhX7+CG9XI3ATD9 3obcBQ/RjQPKVkDvdMj4UWhlbzNJkcpkotcuQQXLtXtI5KxaZQPGzpqfne/G4b7nIv5l gZNgFGLu4EYQJwy2Bl1Tk8NTJ8f79NSVb9hRU= 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=hqA+WKglXT46Yr/dDJag5RHQU0xsFpT0zzhPYTiHQgg=; b=SdNpYngYKB+ggC3B5/3MrPJwmc0Pu/9XnK9O8XG1atkf88mFac9I/1T6x+4vf0L8bK OtVkkEvVSsmluM94JPbLIWHzsAFRs53S3U3M2dpAz2VBZV8uisQu+OP2/jiCIZe+n0V+ bJaQAiXiQayVwx9804cnDFjRyIPOcdzeSTlu5fWgYNht4HHg81+xO4ds0Uh24ZY7wWM7 uc/tJ/ZMHGIJAZMV9ebQoW3GGDoh9t52H7HT0ie3h8QlASJhnZfbTXVPDo56vCD4c8Y/ Cd9lllFnDFqHEtlKJlXDpPCeUSvpBVEsXApe3GZ+ps3v6TyFU1PWXOwpphLJZuqyX++n sNbQ== X-Gm-Message-State: AD7BkJLMLfsBqNWQsBpIR93CO7SsyEh3y3//CKYdbStE+24IC+XiQ6mXqnvjsE5i660Fu8E0 X-Received: by 10.98.72.141 with SMTP id q13mr714289pfi.152.1459231611276; Mon, 28 Mar 2016 23:06:51 -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 k88sm39878073pfj.0.2016.03.28.23.06.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Mar 2016 23:06:50 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pontus Fuchs Subject: [PATCH 12/16] wcn36xx: Clear encrypt_type when deleting bss key Date: Mon, 28 Mar 2016 23:06:29 -0700 Message-Id: <1459231593-360-13-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459231593-360-1-git-send-email-bjorn.andersson@linaro.org> References: <1459231593-360-1-git-send-email-bjorn.andersson@linaro.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pontus Fuchs This fixes a problem connecting to an open network after being connected to an encrypted network. Signed-off-by: Pontus Fuchs Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 7c06ca9fdd2c..f9c77de94583 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -471,6 +471,7 @@ static int wcn36xx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, break; case DISABLE_KEY: if (!(IEEE80211_KEY_FLAG_PAIRWISE & key_conf->flags)) { + vif_priv->encrypt_type = WCN36XX_HAL_ED_NONE; wcn36xx_smd_remove_bsskey(wcn, vif_priv->encrypt_type, key_conf->keyidx); @@ -626,6 +627,7 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, } else { vif_priv->is_joining = false; wcn36xx_smd_delete_bss(wcn, vif); + vif_priv->encrypt_type = WCN36XX_HAL_ED_NONE; } }