Commit Graph

1547 Commits

Author SHA1 Message Date
Jeff Johnson
6dcb44ac13 qcacld-3.0: Rename pAddPeriodicTxPtrnParams
Per the Linux coding style both mixed-case names and so-called
Hungarian notation are frowned upon, therefore replace the identifier
pAddPeriodicTxPtrnParams everywhere it occurs.

Change-Id: Id15f65781eb6ead662add691aa299df0ca60bc3f
CRs-Fixed: 2371907
2018-12-26 22:45:52 -08:00
Jeff Johnson
0536c17571 qcacld-3.0: Avoid memory leak when adding a TX pattern
In wma_process_add_periodic_tx_ptrn_ind() the buffer allocated for the
WMI parameter will be leaked if wma_find_vdev_by_addr() fails. To
avoid this, reorder the operations so that the buffer is not allocated
unless wma_find_vdev_by_addr() is successful.

Change-Id: Idbd180dcc1bcae5b71f6a56adcfa3b4a7e2595da
CRs-Fixed: 2371905
2018-12-26 22:45:48 -08:00
Harprit Chhabada
253e36ad50 qcacld-3.0: Modify Kbuild to add new beacon header file
In wmi new file, wmi_unified_bcn_api.c is added.
Add this file in Kbuild.

Change-Id: I4fdbf041b53b5f1606d324714f01088742a9307f
CRs-Fixed: 2366772
2018-12-26 20:27:24 -08:00
Pragaspathi Thilagaraj
ae7dc766b3 qcacld-3.0: BTM changes to add new WCNSS_qcom.ini to configure btm params
Add the following new WCNSS_qcom.ini value:
"prefer_roam_score_for_candidate_selection" - choose to sort the
candidates on roam score or preferred AP list send in the BTM
request frame by AP.
When this ini is set, host driver will
modify btm_offload_config bit 7 which will be read by firmware
to get this ini value.

“roam_candidate_validity_timer” - roam cache entries validity
timer. The candidates in the roam cache are valid only for this
time value. This value is sent to firmware over the wmi command
on the structure wmi_roam_offload_tlv_param

"btm_disassoc_timer_threshold" - Disassociation timer threshold
to wait after which the full scan for roaming can be started
after the AP has sent the disassoc imminent

Change-Id: I3ba5ba2182b1b6d722d9c315757332a1b3e62521
CRs-Fixed: 2369018
2018-12-26 10:12:14 -08:00
Pragaspathi Thilagaraj
39d616074e qcacld-3.0: Add new WCNSS_qcom.ini "bss_load_bss_sample_time"
Add new ini item "bss_load_sample_time" to send the monitor
time window for which the beacons are to be sampled to collect
the bss load information.
Also add changes to send bss load trigger parameters only during
RSO start during initial connection

Change-Id: I61d1f3745b56199838fc886f1ed3a05786653501
CRs-Fixed: 2372147
2018-12-26 10:12:06 -08:00
Pragaspathi Thilagaraj
30251ecf5a qcacld-3.0: Handle the wmi event from WMI_ROAM_BLACKLIST_EVENTID
When firmware receives BTM request with disassoc imminent set,
the firmware should blacklist the AP and should not roam to it
for disassoc timer duration sent in the btm frame. The new wmi
event WMI_ROAM_BLACKLIST_EVENTID received from the firmware
carries the bssid to be blacklisted.

Handle this wmi event WMI_ROAM_BLACKLIST_EVENTID and update the
mac_ctx->roam.rssi_disallow_bssid with the bssid entries
received from firmware.

Change-Id: Ib41bcb91f123ce24b7d28407468e4597af7b5e1a
CRs-Fixed: 2369078
2018-12-26 07:47:34 -08:00
Pragaspathi Thilagaraj
69f0b69ca9 qcacld-3.0: Send bss load trigger values to firmware
Introduce the following new WCNSS_qcom.ini values:
"enable_bss_load_roam_trigger"
"bss_load_threshold"
Send these values over the new wmi command,
WMI_ROAM_BSS_LOAD_CONFIG_CMDID if "enable_bss_load_roam_trigger"
is set to true.

This wmi command will be sent to firmware as part of the RSO
start or update config.

Change-Id: Ib2e21904bc7b8d87e5f51824d2694b90a3ac53f2
CRs-Fixed: 2367770
2018-12-26 07:47:25 -08:00
Jeff Johnson
256002f959 qcacld-3.0: Converge on struct del_ts_param
The driver currently defines two different data structures to hold
Delete Tspec parameters:
- tDelTsParams
- struct del_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: Ia70b1e17e4446259ff32107ffbc11646d078e1c0
CRs-Fixed: 2371915
2018-12-25 05:20:48 -08:00
Jeff Johnson
9851fcc55b qcacld-3.0: Converge on struct add_ts_param
The driver currently defines two different data structures to hold
Add Tspec parameters:
- tAddTsParams
- struct add_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I298202748b8a0f6c2a9f8a36ca7cdee071d000bf
CRs-Fixed: 2371914
2018-12-25 02:59:10 -08:00
Jeff Johnson
cf2ec16b6a qcacld-3.0: Converge on struct delts_req_info
The driver currently defines two different data structures to hold
Delete Tspec Request parameters:
- tSirDeltsReqInfo
- struct delts_req_info

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I0951c8da636bcbf81a335c0ea1250d721ca5c573
CRs-Fixed: 2371913
2018-12-25 02:59:06 -08:00
Jeff Johnson
5402441a01 qcacld-3.0: Converge on struct aggr_add_ts_param
The driver currently defines two different data structures to hold
aggregate AddTspec parameters:
- tAggrAddTsParams
- struct aggr_add_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I960bd79b04838ac675ad49e332a47671faccaaa7
CRs-Fixed: 2371912
2018-12-25 02:59:02 -08:00
Jeff Johnson
56471b94c5 qcacld-3.0: Converge on struct mac_tspec_ie
The driver currently defines two different data structures to hold
a TSpec IE field:
- tSirMacTspecIE
- struct mac_tspec_ie

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I2e9da1d72dae3c4b0baa13306ee7ec127895a4f2
CRs-Fixed: 2371911
2018-12-25 00:40:34 -08:00
Zhang Qian
e33b4b94f8 qcacld-3.0: Clean up OCB legacy code
Clean up OCB legacy code after feature componentization.

CRs-Fixed: 2177619
Change-Id: Ib8a26c9e67e78e53f8b2b4929276060687254ea1
2018-12-24 22:29:37 -08:00
Yeshwanth Sriram Guntuka
14ab04c72f qcacld-3.0: Add host support for db2dbm RSSI changes
Add host support for db2dbm RSSI changes. Firmware
indicates this capability when underlying hardware
has RSSI reporting feature. Based on this capability
host will know if firmware sends SNR or RSSI. If no
capablity is present then host will convert SNR to
rssi using a fixed offset of -96. If capability is
present host will directly use the rssi as it is.

Change-Id: I9058f16c6280d466feb96cf88a8a0d8cd7b02032
CRs-Fixed: 2364023
2018-12-24 03:32:38 -08:00
Arif Hussain
b6ec264531 qcacld-3.0: Add null pointer validation in wma_ll_stats_evt_handler()
Add validation code in wma_ll_stats_evt_handler().

Change-Id: I7d0331ce18b16650540724917194defaf65aed10
CRs-Fixed: 2348596
2018-12-24 00:10:51 -08:00
hqu
34a79332a2 qcacld-3.0: Fix seven memory leak in function wma_hold_req_timer
In wma_hold_req_timer(), if wma_crash_on_fw_timeout()
is true, SSR will be triggered, but allocated memory
such as user_data, params and resp are not freed,
result in memory leak.

Fix is to still do wma_send_msg_high_priority() when
wma_crash_on_fw_timeout()is true, so allocated memory
can be freed.

Change-Id: I798bb864e8ad6dc7eb67401a820dc0896892e65e
CRs-Fixed: 2370594
2018-12-23 21:58:40 -08:00
Jeff Johnson
9e760830c1 qcacld-3.0: Converge on struct mobility_domain_info
The driver currently defines three different data structures to hold
mobility domain information:
- tSirMobilityDomainInfo
- tCsrMobilityDomainInfo
- struct mobility_domain_info

To align with the converged software architecture remove the two
legacy typedefs and exclusively use the unified WMI structure.

Change-Id: I317b90e47c3db8b74a76c297f6bc42301fa2f80e
CRs-Fixed: 2369476
2018-12-22 05:23:11 -08:00
Jianmin Zhu
bf84593f36 qcacld-3.0: Replace isRoamOffloadEnabled and RoamOffloadEnabled
Replace legacy isRoamOffloadEnabled from csr_config with
converged flag lfr3_roaming_offload.
Fix CamelCase issues for roam offload part.

Change-Id: I89ceda876d5549e9b0959e7e25e317c9667594b5
CRs-Fixed: 2367873
2018-12-22 05:23:07 -08:00
Kiran Kumar Lokere
80734c0a31 qcacld-3.0: Fix the issue with MU EDCA param update
Calculate the CW min and max values before configure them to FW.

Change-Id: I3024fcc0aaacda5f307a1b71ea67b87b538a3664
CRs-Fixed: 2371029
2018-12-22 02:53:59 -08:00
Jianmin Zhu
e932fb02f4 qcacld-3.0: Refactor roam scan offload parameters config
After replace CONFIG_MCL with WLAN_FEATURE_ROAM_OFFLOAD in
struct roam_offload_scan_params, roam_offload_params is only
defined under MACRO WLAN_FEATURE_ROAM_OFFLOAD, any access to
roam_offload_params should be under WLAN_FEATURE_ROAM_OFFLOAD.

Refactor function wma_roam_scan_offload_mode, separate roam scan
offload parameters config to another function.

Change-Id: I3b9306ef3c3ad9c451ffb450df9521cde609bca4
CRs-Fixed: 2367841
2018-12-22 02:53:54 -08:00
Jeff Johnson
2ef037ddcd qcacld-3.0: Remove wma_ipa_uc_stat_request()
Change Ib9cdaf7e8aa019002b9fc02d8ffacfcdb28fc121 ("qcacld-3.0:
Remove sme_ipa_uc_stat_request()") removed the last client of
wma_ipa_uc_stat_request(). Since this function is now obsolete,
remove it.

Change-Id: I965ccad2e94246c0d7d57e85c1fa433eeb5c136e
CRs-Fixed: 2371196
2018-12-21 15:14:37 -08:00
Jeff Johnson
5b21359f5e qcacld-3.0: Remove wma_get_wcnss_software_version()
Change Ief51bcf611d5d5759fa04e05c0bb4d96e44c7a29 ("qcacld-3.0:
Remove sme_get_wcnss_*_version()") removed the last client of
wma_get_wcnss_software_version(). Since this function is obsolete,
remove it.

Change-Id: Ie3e8fcb48e45deebc750c9886f268d5306a7b705
CRs-Fixed: 2371195
2018-12-21 15:14:26 -08:00
Jeff Johnson
7146db75bc qcacld-3.0: Remove wma_get_mac_id_of_vdev()
Function wma_get_mac_id_of_vdev() is unused, so remove it.

Change-Id: Id9283aaff4f9c83f427311191cc3d1777810ac91
CRs-Fixed: 2371194
2018-12-21 15:14:15 -08:00
Jeff Johnson
fe31a6d6d4 qcacld-3.0: Remove is_nan_enabled flag from wma_handle_t
The is_nan_enabled flag in wma_handle_t is written but never read.
Since it is unused, remove it along with the logic that writes it.

Change-Id: I3e7d09ac1ab77427d37a8a45ca5f1612b05c5339
CRs-Fixed: 2370875
2018-12-21 05:14:43 -08:00
Jeff Johnson
ecc38783b5 qcacld-3.0: Remove wma_wow_tx_complete() prototype
The current version of the driver does not have an implementation of
wma_wow_tx_complete(), so remove the obsolete prototype.

Change-Id: Ieb91ebeade812ed4ba4ba25f93a63e4e33cad8ff
CRs-Fixed: 2370020
2018-12-19 20:54:30 -08:00
Jeff Johnson
56c7d46b00 qcacld-3.0: Remove ucMaxProbeRespRetryLimit from tAddBssParams
Field ucMaxProbeRespRetryLimit in tAddBssParams is unused, so
remove it.

Change-Id: I4d9020e134eaca7b43b13f7e58e6837548a79c28
CRs-Fixed: 2370018
2018-12-19 20:54:30 -08:00
Jeff Johnson
aa77367b54 qcacld-3.0: Remove wma_scan_comp_timer from t_wma_handle
The wma_scan_comp_timer in t_wma_handle is unused, so remove it.

Change-Id: I794f462eb8bce6fddf11b438aaf389ff7fe30e52
CRs-Fixed: 2370017
2018-12-19 20:54:29 -08:00
Abhishek Singh
8ebda9db47 qcacld-3.0: Cleanup unused scan params and ini
Cleanup unused scan params and ini as they are moved to scan
component.

Change-Id: I67a589133e58fd7740d7edc93d32a2d9fcd14c5a
CRs-Fixed: 2369068
2018-12-19 18:52:12 -08:00
bings
705b412f40 qcacld-3.0: Remove dead code tUpdateCFParams and WMA_UPDATE_CF_IND
WMA_UPDATE_CF_IND message (aka SIR_HAL_UPDATE_CF_IND) is dead code, because
it is not processed anywhere.

Remove dead code WMA_UPDATE_CF_IND. The only use of tUpdateCFParams is in
lim_send_cf_params() which only creates a WMA_UPDATE_CF_IND message, so
remove tUpdateCFParams and lim_send_cf_params().

Change-Id: I1b613300cdd7eeeb33825e319977ff941cae548c
CRs-Fixed: 2367931
2018-12-19 04:56:59 -08:00
lifeng
0b46ae503e qcacld-3.0: Refine mlme reg configurations
Refine mlme reg configurations based on converged cfg component.
Remove related legacy codes.

Change-Id: I524b29d2d03e60111fa1759d11e32236bb3aa3fa
CRs-Fixed: 2357961
2018-12-19 04:56:44 -08:00
Nachiket Kukade
6003bd2adf qcacld-3.0: Route the legacy NAN commands through NAN component
NAN component has been moved to CLD. It includes implementation
of the new NAN command QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
Change the legacy NAN implementation of vendor cmd
QCA_NL80211_VENDOR_SUBCMD_NAN so that the requests go
through the NAN component. Clean up the legacy path.
Functionality remains unchanged for legacy command.

Route the legacy NAN commands through the NAN component.

Change-Id: I542e5afe832619f8c088220cc4456aa7fe4416fd
CRs-Fixed: 2356772
2018-12-18 14:29:19 -08:00
Nachiket Kukade
85aa3788b6 qcacld-3.0: Store the NAN target caps inside its private obj
Host will receive the NAN related service capabilities from
the SERVICE_AVAILABLE event. In the HDD callback that gets
called afterwards, set the NAN related capabilities into
the NAN's private PSOC object.

Store the NAN target capabilities inside its private object.

Change-Id: If398b6f253613fc424b7821cfc62b0984ad34b6c
CRs-Fixed: 2356709
2018-12-18 14:29:06 -08:00
Jeff Johnson
da8f43cc27 qcacld-3.0: Remove pe_ndp_event_handler from t_wma_handle
Previously change I5828002d2363e01f63b0a643a0c59abd52bc4f19
("qcacld-3.0: NAN datapath cleanup") removed the code that uses
the pe_ndp_event_handler but did not remove the field from the
t_wma_handle structure, so remove it now.

Change-Id: I4b23e55fcdb8178d6a272fd46094af5505b94cc7
CRs-Fixed: 2365061
2018-12-14 22:49:27 -08:00
Abhishek Singh
bbe23a736c qcacld-3.0: Fix channel width update sent during channel switch
During channel switch if the new channel's phymode is different
than the old channel the host will update its phymode and
send vdev restart to firmware. Once vdev restart resp is received,
host sends new phymode and channel width to the firmware.

If host process beacon with opmode IE while waiting for vdev restart
response, it check if new channel width in bcn is valid for new
phymode and send channel width to firmware. If channel width changed
is greater than allowed value for older phymode, firmware is not able
to handle it.

Fix is to ignore any opmode IE during channel switch. Also ignore
the beacons with CSA/ECSA IE if channel switch detection is
offloaded. The opmode or any other change in beacon will be detected
with the beacons on new channel once AP moves to new channel.

Change-Id: If3bfb555dfa7b63dc997bbdf2fe6a0836bcf17fd
CRs-Fixed: 2361553
2018-12-14 16:05:55 -08:00
Pragaspathi Thilagaraj
890d952906 qcacld-3.0: Add debugs in wma_remove_bss_peer path
wma_remove_bss_peer doesn't need req_msg, as only vdev id is
needed. So refine the function definition of wma_remove_bss_peer.

Remove calls to wma_cleanup_target_req_param() if
wma_remove_bss_peer succeeds, as it posts the req->user_data to
firmware. Add debugs in wma_remove_bss path to get more info.

Change-Id: I0d8f0bd74784f0a4542e8ae6301471804285752d
CRs-Fixed: 2363696
2018-12-14 14:26:12 -08:00
Ajit Pal Singh
ce05896f39 qcacld-3.0: Send WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID if BPF enabled
Send WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID only if BPF is enabled in .ini
file.

Change-Id: Ia093cfaa0ff44e4052150ee943e363ca6412cbe0
CRs-Fixed: 2362929
2018-12-14 12:48:34 -08:00
Alok Kumar
0230129d11 qcacld-3.0: Add WMA callbacks to send peer unmap conf cmd to FW
Add supports to register WMA callbacks to send peer unmap conf
command to FW.

Change-Id: Ia709f5163d5e0a4b9f7141989c4e59183767f00e
CRs-Fixed: 2358129
2018-12-14 11:05:40 -08:00
chenguo
ede57cd0cc qcacld-3.0: Fix NULL VDEV point during peer remove in monitor mode
After gerrit#2436786, vdev in monitor mode is removed from vdev
list of pdev. So it is needed to use the new cdp api, which is
cdp_get_mon_vdev_from_pdev in stead of cdp_get_vdev_from_vdev_id
in monitor mode to register vdev.

CRs-Fixed: 2359997
Change-Id: I75cad531e161748a3830104516e44079dee636ec
2018-12-14 11:05:36 -08:00
Sourav Mohapatra
c457ae6f18 qcacld-3.0: Feature flag for Wlan Latency Manager support
WLAN Latency Manager support is one of the capabilities that is sent
along with the service bits by firmware. Currently, driver is not
exposing this feature to the user space.

Create and add support for a feature flag to expose this feature to the
userspace.

Change-Id: Ica8213bdaeb32c7be01b6a71a7d8b7a32dc8611b
CRs-Fixed: 2363704
2018-12-14 07:15:10 -08:00
Jeff Johnson
e866cac222 qcacld-3.0: Consolidate DS mode definitions
The file cds_ieee80211_common.h contains a large number of macros that
are used to describe most fields in IEEE 802.11 frames. Despite that,
currently WMA has an enum ds_mode to represent the Distribution System
Mode settings. In order to avoid unnecessary duplicate definitions
remove enum ds_mode and instead use the cds_ieee80211_common macros.

Change-Id: I0dc722009e063a1eac0da4afbe77f96772c583b2
CRs-Fixed: 2365060
2018-12-13 18:44:29 -08:00
Jeff Johnson
06ff3be1eb qcacld-3.0: Remove p2p_lo_in_progress from wma_txrx_node
Previously change I750870ccbe84e817954a3ee1a50e2e8daa5ab661
("qcacld-3.0: Remove obsolete P2P Listen Offload from WMA") removed
the only code that used the p2p_lo_in_progress field in struct
wma_txrx_node. Since it is now obsolete, remove it.

Change-Id: I9e9247a578fb07ef8089f2b5eb544e4e6595244a
CRs-Fixed: 2365059
2018-12-13 18:44:24 -08:00
Jeff Johnson
175e4f91fd qcacld-3.0: Remove Suspend & Resume remnants from WMA
Previously change Iba16643adf1cbd997138c740345e40c00c8e81f6
("qcacld-3.0: Add Suspend and Resume support in PMO") relocated
Suspend/Resume support from WMA to PMO. However that change left
behind in WMA some remnants that are no longer useful such as the
wma_resume_event, so remove them.

Change-Id: Icf35bafd8fdacdbdc71cfb4309a8bd15bfb1a244
CRs-Fixed: 2365057
2018-12-13 18:44:20 -08:00
Jeff Johnson
51971c7494 qcacld-3.0: Revise wma_mcs_rate_match() implementation
Currently some of the parameter names used in the implementation of
wma_mcs_rate_match() do not match the names used in the prototype.
This can be confusing to both humans and to code analysis tools, so
change the camelCase names used in the implementation to match the
prototype.

Change-Id: I87a85a7f1affa6bcad75f33f2bca6aa67475aa47
CRs-Fixed: 2365056
2018-12-13 18:44:16 -08:00
Jeff Johnson
f8e194833c qcacld-3.0: Remove obsolete GEN_PARAM enums
Previously change Id965dd8ee0fbddfa563335fd2fe225dcd20cd162
("qcacld-3.0: Port modulated dtim and override listen interval")
relocated support for configuring Modulated DTIM and Listen Offload
from WMA to PMO. The associated enumerations in enum GEN_PARAM are now
obsolete, so remove them, along with their default value macros.

Change-Id: Iac88c4b5578c24b6fcaefb935459f6e988892a1a
CRs-Fixed: 2365055
2018-12-13 18:44:12 -08:00
Jeff Johnson
083ee823c3 qcacld-3.0: Remove obsolete wma_map_channel() prototype
The driver contains a prototype for wma_map_channel() but no
implementation, so remove the prototype.

Change-Id: I1a8794c103ac78df8ef4fd1c181ee60350c88058
CRs-Fixed: 2365054
2018-12-13 18:44:09 -08:00
Jeff Johnson
1456a1f78a qcacld-3.0: Remove obsolete wma_api prototypes
wma_api.h contains two prototypes for functions that are no longer
a part of the driver, so remove them.

Change-Id: I79c96320a23471e0c21cc04ec1b207cda76db199
CRs-Fixed: 2365053
2018-12-13 18:44:05 -08:00
Jeff Johnson
88e3331da6 qcacld-3.0: Remove unused Enable/Disable PS params
Both tEnablePsParams and tDisablePsParams contain unused fields, so
remove them.

Change-Id: I148c065ac5425a7695ef7bf1d54bf7975b1ef10e
CRs-Fixed: 2364269
2018-12-13 18:43:19 -08:00
Jeff Johnson
c8ea8e693b qcacld-3.0: Correctly document wma_tx_packet()
Currently the prototype and the implementation of wma_tx_packet() use
different identifiers for some of the parameters, which is confusing
to both programmers and to tools. In addition currently the
implementation is documented instead of the interface. Therefore move
the documentation to the header file, and changed the prototype to
match the implementation.

Change-Id: I2c2e36c5b85935c37271336970c6532495c20fa6
CRs-Fixed: 2364268
2018-12-13 18:43:15 -08:00
Jeff Johnson
622aad6d3d qcacld-3.0: Use the refined struct wmi_unified_pmk_cache
The original definition of struct wmi_unified_pmk_cache had several
anomalies:
1) It contains an unnecessary tlv_header field. Only the fw-api
   structs should contain TLV headers.
2) It contains a mis-named session_id field. Common structures should
   use converged terminology, in this case vdev_id

qca-wifi-host-cmn change If4be27111c604c16ea437aa654210cdff28220a7
("qcacmn: Refine struct wmi_unified_pmk_cache (phase 1)") completely
addressed the first issue, and as the first phase of fixing the second
issue it replaced the session_id field with an anonymous union which
contains both the existing session_id field and a new vdev_id field.
Being part of a union these field will overlay each other.

For the current phase replace the reference to session_id with a
reference to vdev_id in sme_set_del_pmkid_cache().

Change-Id: Ief4bcb819cb3c842adb74904f2cb2483476eaeb9
CRs-Fixed: 2363433
2018-12-13 16:45:47 -08:00
Arunk Khandavalli
ca56d4b488 qcacld-3.0: Add Host Driver support for Beacon reception stats
Implementation of Host driver support to collect per Vdev Beacon
reception  Stats from firmware and display the stats in sysfs.

	"adb shell cat /sys/class/net/wlan0/beacon_stats"
vdev id: 0
Total Beacon Count: 255
Total Beacon Miss Count: 21
Beacon Miss Bit map [0x800] [0x10000000] [0x22000400] [0x100]
[0x84000000] [0x4030002] [0x5034000] [0x28084]

Change-Id: Iadd31042320f7815a6a6f4733f5393dba93b5b3e
CRs-Fixed: 2360913
2018-12-11 12:27:05 -08:00