From patchwork Thu Jun 28 06:16:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 10493139 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 CDB73603EE for ; Thu, 28 Jun 2018 06:19:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD36329DA7 for ; Thu, 28 Jun 2018 06:19:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B116D29DAE; Thu, 28 Jun 2018 06:19:13 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 E9F8929DBA for ; Thu, 28 Jun 2018 06:19:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753559AbeF1GTK (ORCPT ); Thu, 28 Jun 2018 02:19:10 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:38255 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753056AbeF1GTJ (ORCPT ); Thu, 28 Jun 2018 02:19:09 -0400 Received: by mail-lj1-f195.google.com with SMTP id v15-v6so3507924ljk.5 for ; Wed, 27 Jun 2018 23:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wJHIixkPUZFOyyOxwOlm3seW91hmWBByCkLkdUjIgl0=; b=Cq92cylg6d41wT99XKgVnuY99NFWM+funqz0uNrwaV4JYqKr0HZjoj/e+EIT3BS2lk dx6lN8Q+1vqnrEnoRVHQchQFLbMAHaVySKb0XD7lHL8A25lzpiT6zXbQNAyAIWSYPql4 yhiwlWOSHtWFk4cuneqtkFuXF8y7CbJnbpRVSpt1zpG53Utw9mVb8fWnO/hQxeqGgXHM 5PuXJUGoP5rRAkPXoIz8TrqlG3LT5jR1Q5ZgCvx+bLWYzwCvZXC+fMiedXNhVA2K/RqW gIvK7BPgwJDYt58cIPqCnof4e7/9wpa2j8j4BL1i2+utfo9wgM9pj1z5+Osj6ufj4CwK B+hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wJHIixkPUZFOyyOxwOlm3seW91hmWBByCkLkdUjIgl0=; b=AWEGJu9hFz1I9e0hPUT0WCZxwp4YnCPn1ONpMgq49oI5oKHW6grnSWgotCAsVAIw2i 7jtH1oZz/EfYe1MKjSwVUENSsA441Kig/RFifhRRKsvst0kyxLI4Vuqe1hPB/al4Udpf hey+j+jYxizpBylNHnxxlnyaf4KZ6ZIt9fWmQ5+H0XTA6S1lFc+pZxqJTvicA01MeZHS nSIJsinTgABD1j2VkQXThxEjcVaxKOhUBQBErpsFIrxiFNm3ED1vTVXdMiFTH7x77+6w 5vTsTyd+6QwGOGjIBBMnYy/bj6qyqD32kSK+3UjFz0pHlOHEIuSfXV4NJKo8xt65xq7x aJ6A== X-Gm-Message-State: APt69E0SE8JQik59Fn1RB7CfwM9JBBvqp/OVE1Ao+Czn8E+yIAHX/YYi aG1iaQbajsxBZTqyS2MpS90= X-Google-Smtp-Source: AAOMgpeNxqGMwsLPN5VUYVPhMu7CF9O7sWKvdByPk5H+GS4wQQ5pDfIEApUkYEkTdOl0M9xgSM5e7Q== X-Received: by 2002:a2e:6505:: with SMTP id z5-v6mr6369095ljb.62.1530166748053; Wed, 27 Jun 2018 23:19:08 -0700 (PDT) Received: from linux-veee.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id y11-v6sm973365lji.6.2018.06.27.23.19.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jun 2018 23:19:07 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , Arend van Spriel Cc: Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , Pieter-Paul Giesberts , Chung-Hsien Hsu , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH] brcmfmac: define more bits for the flags of struct brcmf_sta_info_le Date: Thu, 28 Jun 2018 08:16:13 +0200 Message-Id: <20180628061613.16648-1-zajec5@gmail.com> X-Mailer: git-send-email 2.13.7 MIME-Version: 1.0 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: Rafał Miłecki That struct is passed by a firmware when querying for STA info. Flags are used to indicate what info could be obtained. These new defines may allow passing more info to the cfg80211 in the future. They had been obtained from Broadcom's SDK file wlioctl_defs.h used by DD-WRT. Signed-off-by: Rafał Miłecki --- .../broadcom/brcm80211/brcmfmac/fwil_types.h | 29 ++++++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h index 4b290705e3e6..9b3a58e89dd1 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h @@ -32,11 +32,30 @@ #define BRCMF_BSS_INFO_VERSION 109 /* curr ver of brcmf_bss_info_le struct */ #define BRCMF_BSS_RSSI_ON_CHANNEL 0x0002 -#define BRCMF_STA_WME 0x00000002 /* WMM association */ -#define BRCMF_STA_AUTHE 0x00000008 /* Authenticated */ -#define BRCMF_STA_ASSOC 0x00000010 /* Associated */ -#define BRCMF_STA_AUTHO 0x00000020 /* Authorized */ -#define BRCMF_STA_SCBSTATS 0x00004000 /* Per STA debug stats */ +#define BRCMF_STA_BRCM 0x00000001 /* Running a Broadcom driver */ +#define BRCMF_STA_WME 0x00000002 /* WMM association */ +#define BRCMF_STA_NONERP 0x00000004 /* No ERP */ +#define BRCMF_STA_AUTHE 0x00000008 /* Authenticated */ +#define BRCMF_STA_ASSOC 0x00000010 /* Associated */ +#define BRCMF_STA_AUTHO 0x00000020 /* Authorized */ +#define BRCMF_STA_WDS 0x00000040 /* Wireless Distribution System */ +#define BRCMF_STA_WDS_LINKUP 0x00000080 /* WDS traffic/probes flowing properly */ +#define BRCMF_STA_PS 0x00000100 /* STA is in power save mode from AP's viewpoint */ +#define BRCMF_STA_APSD_BE 0x00000200 /* APSD delv/trigger for AC_BE is default enabled */ +#define BRCMF_STA_APSD_BK 0x00000400 /* APSD delv/trigger for AC_BK is default enabled */ +#define BRCMF_STA_APSD_VI 0x00000800 /* APSD delv/trigger for AC_VI is default enabled */ +#define BRCMF_STA_APSD_VO 0x00001000 /* APSD delv/trigger for AC_VO is default enabled */ +#define BRCMF_STA_N_CAP 0x00002000 /* STA 802.11n capable */ +#define BRCMF_STA_SCBSTATS 0x00004000 /* Per STA debug stats */ +#define BRCMF_STA_AMPDU_CAP 0x00008000 /* STA AMPDU capable */ +#define BRCMF_STA_AMSDU_CAP 0x00010000 /* STA AMSDU capable */ +#define BRCMF_STA_MIMO_PS 0x00020000 /* mimo ps mode is enabled */ +#define BRCMF_STA_MIMO_RTS 0x00040000 /* send rts in mimo ps mode */ +#define BRCMF_STA_RIFS_CAP 0x00080000 /* rifs enabled */ +#define BRCMF_STA_VHT_CAP 0x00100000 /* STA VHT(11ac) capable */ +#define BRCMF_STA_WPS 0x00200000 /* WPS state */ +#define BRCMF_STA_DWDS_CAP 0x01000000 /* DWDS CAP */ +#define BRCMF_STA_DWDS 0x02000000 /* DWDS active */ /* size of brcmf_scan_params not including variable length array */ #define BRCMF_SCAN_PARAMS_FIXED_SIZE 64