From patchwork Sun Feb 8 10:51:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 5797261 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5EFBC9F336 for ; Sun, 8 Feb 2015 10:52:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 832952012D for ; Sun, 8 Feb 2015 10:52:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4B98D2012B for ; Sun, 8 Feb 2015 10:52:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754165AbbBHKwJ (ORCPT ); Sun, 8 Feb 2015 05:52:09 -0500 Received: from mail-wg0-f54.google.com ([74.125.82.54]:62469 "EHLO mail-wg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbbBHKwI (ORCPT ); Sun, 8 Feb 2015 05:52:08 -0500 Received: by mail-wg0-f54.google.com with SMTP id l18so5557677wgh.13 for ; Sun, 08 Feb 2015 02:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=rAkDY76lot8OjeumP7lSkjNikmAWHTnz4zgLv9xPiCY=; b=eKOVc0nd+X8wxuinoIj/wSghbqA5mQYHKscixSyBF3aXxjaLeoUPrbPb/zKxXYGyVM 7LP3n12lbAO5IeP18lhPt9I5Z331ZwEazvGigqg/Ty8PyAqP7E9eIZnN0mdXQjOBGs4w ZWEDAkA/0DVdKR6qN+yun3dKfZGWrGO7ENnYtvLiCWD1a/q+O650P6tZgIbhzJrx8dqs m6syqdAxdFNv/dlaYlXObHuBkB5crg/OyVfSSppNyBjMRVtuluhO9F7Hlc1QN3A0kSO2 KzRIQ0mV4rZri9WPWyaa18Oj00AOiun/F9F5iTbp1lWqnFYeAYyk31Srn4qiyvYn5Kjr 546A== X-Received: by 10.194.59.232 with SMTP id c8mr29547532wjr.76.1423392726088; Sun, 08 Feb 2015 02:52:06 -0800 (PST) Received: from linux-tdhb.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by mx.google.com with ESMTPSA id yy9sm11381973wjc.20.2015.02.08.02.52.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Feb 2015 02:52:05 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , linux-wireless@vger.kernel.org Cc: Brett Rudley , Arend van Spriel , "Franky (Zhenhui) Lin" , Hante Meuleman , brcm80211-dev-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH] brcmfmac: respect reason when deleting (deauthenticating) STA Date: Sun, 8 Feb 2015 11:51:47 +0100 Message-Id: <1423392707-12417-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Starting with kernel 3.19 reason is provided by cfg80211. Signed-off-by: Rafa? Mi?ecki Acked-by: Arend van Spriel --- drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c index b59b8c6..a23bfaa 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c @@ -4272,7 +4272,7 @@ brcmf_cfg80211_del_station(struct wiphy *wiphy, struct net_device *ndev, return -EIO; memcpy(&scbval.ea, params->mac, ETH_ALEN); - scbval.val = cpu_to_le32(WLAN_REASON_DEAUTH_LEAVING); + scbval.val = cpu_to_le32(params->reason_code); err = brcmf_fil_cmd_data_set(ifp, BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON, &scbval, sizeof(scbval)); if (err)