wil6210: option to override A-BFT length in start AP/PCP
authorLior David <qca_liord@qca.qualcomm.com>
Fri, 20 Jan 2017 11:49:52 +0000 (13:49 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 27 Jan 2017 17:49:59 +0000 (19:49 +0200)
Add an option to specify and override the A-BFT length when
starting an AP/PCP. See IEEE P802.11-2016, 10.38.5.
The abft_len must be set before starting AP/PCP. It is only
needed for diagnostics and certification.

Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/debugfs.c
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wmi.c

index bb8a59a6ed74cc0a3f89665199e3b671261060ad..97e908842a2b7209f12d94438529173b02c04ffa 100644 (file)
@@ -1702,6 +1702,7 @@ static const struct dbg_off dbg_wil_off[] = {
        WIL_FIELD(ap_isolate,   S_IRUGO,                doff_u32),
        WIL_FIELD(discovery_mode, S_IRUGO | S_IWUSR,    doff_u8),
        WIL_FIELD(chip_revision, S_IRUGO,               doff_u8),
+       WIL_FIELD(abft_len, S_IRUGO | S_IWUSR,          doff_u8),
        {},
 };
 
index 6dbaff5ceff1f02086ea1fe9e35b4a08cce18bee..085a2dbfa21d615887c458e6385ac06cae8dcca3 100644 (file)
@@ -667,6 +667,7 @@ struct wil6210_priv {
        struct dentry *debug;
        struct wil_blob_wrapper blobs[ARRAY_SIZE(fw_mapping)];
        u8 discovery_mode;
+       u8 abft_len;
 
        void *platform_handle;
        struct wil_platform_ops platform_ops;
index 598096f17c18ff44f2acf9fc2d764825c2154834..27d21a3e7c7dff01fce29bb145834bf1dd0f716d 100644 (file)
@@ -1079,6 +1079,7 @@ int wmi_pcp_start(struct wil6210_priv *wil, int bi, u8 wmi_nettype,
                .hidden_ssid = hidden_ssid,
                .is_go = is_go,
                .disable_ap_sme = disable_ap_sme,
+               .abft_len = wil->abft_len,
        };
        struct {
                struct wmi_cmd_hdr wmi;