From patchwork Sat Jul 9 01:04:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: engineering@keppy.com X-Patchwork-Id: 9221927 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C406560B17 for ; Sat, 9 Jul 2016 01:02:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8224286DF for ; Sat, 9 Jul 2016 01:02:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99D0B286E3; Sat, 9 Jul 2016 01:02:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2C0E286DF for ; Sat, 9 Jul 2016 01:02:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932707AbcGIBCd (ORCPT ); Fri, 8 Jul 2016 21:02:33 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:36202 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932568AbcGIBCb (ORCPT ); Fri, 8 Jul 2016 21:02:31 -0400 Received: by mail-io0-f196.google.com with SMTP id s93so3673538ioi.3 for ; Fri, 08 Jul 2016 18:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=keppy-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Y85L8obJTGySAXZEx1P2d3PtK86PoxnlX1Xdt5fzmuA=; b=VNGPz4fWyRu43fi27bcfBO6i8/iClm3NNFnlveyjMtzjM5/gB7aLsL3Fu5mTfC1ay6 90wfdU3SWoxAG4Gdt2o4UrMAvSUWjTonwPs7723R26ww00OjqNVN89yuTc+06rpMQ/i4 jRIcr/FUS4AagZKouGqWlH+Z7CfjYHfTCg6y9KVcx8BQVc2bJblfzl56HhhGDCo6TLh5 RqKcjbbm8bcNqj53NHwMCU7Pb/LoqQ9WNKr8BPEn+KO7PWUHMjbyOpQDFoPFGrp7F7Ik a08EShquv0K6befE6JRKQQg7+4CRe9Mp4NRCabDbRVYcKdM5TVCg04sDUdoyg6oZOuLq GwxA== 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; bh=Y85L8obJTGySAXZEx1P2d3PtK86PoxnlX1Xdt5fzmuA=; b=T6N39VBmJGqDJxrz77kz2mttZAH81tq+dYXUwmsvsl/sC+MC7ArC1/lzOybwMc7xZJ qo/WAiYQJpQObbpnUgA0Cn3S2mN+ZyyIXvWdwue80+Rh3ZreqmtLxnm46KmLbI0Bhz+L hVsF1jv82adwlbZ3EgXqNmcLMXsqOfDYKXdDyH1H1RyhUsmaJY+RJK4QMr2XIsBT9KsT jOCossGjfJ89FnBH1ARY+rRv9kxscILDowtv8W/GAf2gbq5gCVgNQHjnbFsW3A2n4mdY YjfDJuoDU7DQEi1q+e4rFmfHYIeVaTudhuFkHa0PAUAMfwWcDgteAz9f1o47UjPGzdrO cHeQ== X-Gm-Message-State: ALyK8tLg2weDt3VhahhxiAsEcV+x8AwnhHr18CzEKHgUMy2sBfFAzCBU9rZQyIzVYCiY7w== X-Received: by 10.107.16.24 with SMTP id y24mr10556579ioi.123.1468026150859; Fri, 08 Jul 2016 18:02:30 -0700 (PDT) Received: from danke-desktop.test.summit.com ([12.219.245.219]) by smtp.gmail.com with ESMTPSA id o133sm2382723itg.5.2016.07.08.18.02.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jul 2016 18:02:30 -0700 (PDT) From: engineering@keppy.com X-Google-Original-From: dan.kephart@lairdtech.com To: kvalo@qca.qualcomm.com Cc: ath6kl@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH] ath6kl: sme_state shortcut to SME_DISCONNECTED removed Date: Fri, 8 Jul 2016 21:04:19 -0400 Message-Id: <1468026259-25148-1-git-send-email-dan.kephart@lairdtech.com> X-Mailer: git-send-email 2.4.10 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dan Kephart When an NL80211_DISCONNECT is sent to cfg80211, the driver's cfg80211 disconnect function sets the sme_state to SME_DISCONNECTED before receiving a WMI_DISCONNECT_EVENT from the firmware. This caused cfg80211 to not know that the connection is disconnected because the driver fails to notify cfg80211 upon receiving WMI_DISCONNECT_EVENT from the firmware believing it is already disconnected. Signed-off-by: Dan Kephart --- drivers/net/wireless/ath/ath6kl/cfg80211.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index ef5b40e..86a860f 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c @@ -847,8 +847,6 @@ static int ath6kl_cfg80211_disconnect(struct wiphy *wiphy, up(&ar->sem); - vif->sme_state = SME_DISCONNECTED; - return 0; }