Commit Graph

12014 Commits

Author SHA1 Message Date
Dustin Brown
ebb16d1886 qcacld-3.0: Enable qdf types tests
Enable the unit test cases for qdf_types, recently added in
I7536a973141a6311662390e42da749f48239bef8.

Change-Id: I4264696d61443acf1bd0993f91de06119471b25f
CRs-Fixed: 2359296
2018-12-11 17:25:55 -08:00
Wu Gao
637d58a4c1 qcacld-3.0: Enable P2P component in CLD
P2P component related files moved from hostcmn to CLD, this change
adds initial functions, enables P2P in Kbuild.

Change-Id: I04102a5f3e59ded13ada15b1b417ae81c7a10e90
CRs-Fixed: 2361500
2018-12-11 17:25:51 -08:00
nshrivas
308cae5313 Release 5.2.0.111I
Release 5.2.0.111I

Change-Id: Ie39e470a3936d6c3f02e9d563da99accbaaf11d8
CRs-Fixed: 774533
2018-12-11 12:27:05 -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
nshrivas
4fb6fa0e45 Release 5.2.0.111H
Release 5.2.0.111H

Change-Id: I8301217e780739abf3b82be08c969e0daa2fe728
CRs-Fixed: 774533
2018-12-11 10:18:35 -08:00
Jeff Johnson
188173d940 qcacld-3.0: Remove unused typedef wma_txFailIndCallback
Previously change I7faaf646df363a74954defbef103afbb4b72af92
("qcacld-3.0: Add extended IBSS feature on qcacld-3.0") introduced two
different typedefs to serve the same purpose, txFailIndCallback which
is in use, and wma_txFailIndCallback which is unused, so remove the
unused one.

Change-Id: Icc3e016337500e4899d6bc2dc257a61d82f0ec65
CRs-Fixed: 2364267
2018-12-11 10:18:34 -08:00
Jeff Johnson
cf161a3986 qcacld-3.0: Remove wma_get_hotlist_entries_per_page()
Previously change I6786ce42d99d6a3f29561c24dea7e3018fb0f3e9
("qcacld-3.0: Refactor formation of wmi scan roaming commands")
removed all of the clients of wma_get_hotlist_entries_per_page(),
so now remove this unused function.

Change-Id: I2a8931a9152b84f589e0b41a7c5138112db22985
CRs-Fixed: 2364106
2018-12-11 10:18:30 -08:00
Jeff Johnson
e2e0e337eb qcacld-3.0: Remove ol_ctrl_addba_api.h
The definitions in file ol_ctrl_addba_api.h are unused, so remove the
file and remove the #include directive in the one place it appears.

Change-Id: I9056791b1a21dc8c8e113db2d49468e3abafab34
CRs-Fixed: 2364105
2018-12-11 10:18:26 -08:00
Jeff Johnson
f9f921c52a qcacld-3.0: Clean up tSap_StationAssocReassocCompleteEvent
The typedef tSap_StationAssocReassocCompleteEvent contains the
following fields that are not being used, so remove them:
- SapAuthType
- beaconLength
- beaconPtr
- assocReqLength
- assocReqPtr
- assocRespLength
- assocRespPtr

Change-Id: I1de03b76b0070ee0b19d3d4672ed75614c013ac7
CRs-Fixed: 2364104
2018-12-11 10:18:23 -08:00
Jeff Johnson
219b6a0aae qcacld-3.0: Remove gDisableDfsJapanW53 remnants
Previously change I7f39ed0680919c6a383d9b8bae5864f979b6948c
("qcacld-3.0: Refactor more dfs cfg items") removed support for
gDisableDfsJapanW53. However some remants of that support were left
behind, so remove them.

Change-Id: Ic0ec3411621c87a66a2d2055ceeebc2ed027aa39
CRs-Fixed: 2364103
2018-12-11 10:18:19 -08:00
Jeff Johnson
9f158923b9 qcacld-3.0: Remove typedef tSap_DfsNolInfo
The only use of typedef tSap_DfsNolInfo is to define the unused
sapDfsNolInfo field in typedef tSap_Event. Since they serve no purpose
remove both the sapDfsNolInfo field and the tSap_DfsNolInfo typedef.

Change-Id: Ic63288c0ea59b4f26a20d65a3e41503e49efedbd
CRs-Fixed: 2364102
2018-12-11 10:18:16 -08:00
nshrivas
ded4b13008 Release 5.2.0.111G
Release 5.2.0.111G

Change-Id: I21d9e1e49c49f70a84ec88eb96d547aa6301a806
CRs-Fixed: 774533
2018-12-11 08:17:26 -08:00
Jianmin Zhu
a9005b33bf qcacld-3.0: Move ifdef CONFIG_VDEV_SM outside of functions in lim
Moves ifdef CONFIG_VDEV_SM outside of functions in lim.

Change-Id: I4ec40ce1dedccdc69e0e2dd68c1823ec4bb7549a
CRs-Fixed: 2362457
2018-12-11 08:17:25 -08:00
nshrivas
22e3aef29f Release 5.2.0.111F
Release 5.2.0.111F

Change-Id: I2b095d289b5a5d4d4c4f780e82d35ff7217fd5d6
CRs-Fixed: 774533
2018-12-11 06:11:05 -08:00
Abhishek Singh
f27d517553 qcacld-3.0: Move ifdef CONFIG_VDEV_SM outside functions in sap
Moves ifdef CONFIG_VDEV_SM outside functions in sap module.

Change-Id: I141d86293ca61d29cc2e6d47a7b988eb6e127950
CRs-Fixed: 2363650
2018-12-11 06:11:05 -08:00
nshrivas
4426f7852d Release 5.2.0.111E
Release 5.2.0.111E

Change-Id: I68b739b6dfa3fab1560cd3bb75eebe8657746d1c
CRs-Fixed: 774533
2018-12-11 01:43:03 -08:00
Abhishek Singh
fb5b4d32a3 qcacld-3.0: Move ifdef CONFIG_VDEV_SM outside functions in wma
Moves ifdef CONFIG_VDEV_SM outside functions in wma.

Change-Id: Idfd2e3f9f9984036bd7b74dfc1497287c7c53404
CRs-Fixed: 2362202
2018-12-11 01:43:03 -08:00
Harprit Chhabada
3cfca968de qcacld-3.0: Fix null pointer dereference for vdev_mac_entry
In wma_process_pdev_hw_mode_trans_ind() vdev_mac_entry is used  to copy the
pdev_id and vdev_id values from a for loop.

vdev_mac_entry is never checked before if it is allocated and can lead to
null pointer dereference.

Change-Id: I44ea6f5262bf39116af33a4d833a2c77d7963626
CRs-Fixed: 2359250
2018-12-11 01:43:00 -08:00
Alok Kumar
8df4c76c58 qcacld-3.0: Set self_peer to NULL in monitor mode if ref cnt is 0
In monitor mode, pdev->self_peer is not updated before deleting the
peer in ol_txrx_peer_release_ref when peer ref_cnt becomes 0. This
leads the stale peer stored in pdev->self_peer. The pdev->self_peer
is not updated during peer creation due to this stale peer.

Update the pdev->self_peer to NULL when peer ref cnt becomes 0

Change-Id: Id09771a1a7c5a363cf3251af829ac8ff50d38a5b
CRs-Fixed: 2356492
2018-12-11 01:42:56 -08:00
nshrivas
fa41505cdb Release 5.2.0.111D
Release 5.2.0.111D

Change-Id: Iaee57cbb641f5131253e90e18d46b5591983d24a
CRs-Fixed: 774533
2018-12-10 23:33:37 -08:00
Abhishek Singh
935e4776f4 qcacld-3.0: Add support to enable/disable scan with reason code
Adds support to enable/disable scan for psoc/vdev with reason,
so that multiple clients can enable/disable the scan at same time.

Scan will remain disabled till all clients enable it back.

Change-Id: I693e223870142f831f8eefa59a9053960886bad6
CRs-Fixed: 2362098
2018-12-10 23:33:29 -08:00
nshrivas
d2131211db Release 5.2.0.111C
Release 5.2.0.111C

Change-Id: Id674f1cbecd9bf0f59a1a83657c04012098cfe98
CRs-Fixed: 774533
2018-12-10 20:21:43 -08:00
Jeff Johnson
4155a5ea6d qcacld-3.0: Remove assoId from tSap_StationAssocIndication
The typedef tSap_StationAssocIndication contains an assoId field that
isn't used, so remove it.

Change-Id: I2a4ba9bd7220cb0cebe891d7085d92e17361ed06
CRs-Fixed: 2364101
2018-12-10 20:21:43 -08:00
Jeff Johnson
6142985f4c qcacld-3.0: Remove unused csr_roam_profile fields
The following fields in struct csr_roam_profile are unused, so remove
them:
- nWSCReqIELength
- pWSCReqIE
- fils_connection

Change-Id: I8fcae065b10d5480f2adab77427ef3048448d9a1
CRs-Fixed: 2364100
2018-12-10 20:21:40 -08:00
Jeff Johnson
405c998276 qcacld-3.0: Remove sessionID field from tSapCtxList
The sessionID field in tSapCtxList is written but never read, hence it
serves no purpose, so remove it.

Change-Id: I0c7a134dba75be905f85016a3db026132bbfa348
CRs-Fixed: 2364099
2018-12-10 20:21:38 -08:00
Jeff Johnson
5c859a5110 qcacld-3.0: Remove obsolete typedef tSap_SoftapStats
The typedef tSap_SoftapStats is unused, so remove it.

Change-Id: I641c5528a6794aa3721529e0fc0015bbb71499fd
CRs-Fixed: 2364098
2018-12-10 20:21:36 -08:00
Jeff Johnson
17c631bf08 qcacld-3.0: Change tpAniSirGlobal definition
A recent set of changes replaced almost all occurrences of typedef
tpAniSirGlobal. The only ones left intact were the ones within the
auto-generated files dot11f.c and dot11f.h. Now to prevent new
instances from being introduced, change the definition.

Change-Id: I31924e45242320fee5d8432b624bb9ba00bf7531
CRs-Fixed: 2364097
2018-12-10 20:21:33 -08:00
Jeff Johnson
84b81380a1 qcacld-3.0: Remove obsolete sap_start_work
Previously Policy Manager refactoring moved the logic for handling
different concurrency scenarios to the qca-wifi-host-cmn project.
Subsequently change I6cb9fe12bee3702556c9b52e7ccb7c69c762d8de
("qcacld-3.0: Remove legacy code for policy manager restructuring")
attempted to remove all of the legacy support. However a few remnants
remain, so remove the remaining support for the following items:
- sap_start_work
- is_sap_restart_required
- is_sta_connection_pending
- sap_update_info_lock
- sta_update_info_lock

Change-Id: I261e69938efddb4389982c77102ec07ed7591d9e
CRs-Fixed: 2363233
2018-12-10 20:20:49 -08:00
Jeff Johnson
58894a1df3 qcacld-3.0: Remove PERE_IP_HDR_ALIGNMENT_WAR feature
The PERE_IP_HDR_ALIGNMENT_WAR feature does not apply to hardware
supported by this driver, and the code would not build correctly
if the feature was enabled, so completely remove the feature.

Change-Id: I4697e798dc57ab7e51c88d40e4d0f9a26a98de6d
CRs-Fixed: 2363232
2018-12-10 20:20:47 -08:00
Jeff Johnson
8feaa63728 qcacld-3.0: Remove obsolete txrx.h
Almost all of the definitions in txrx.h are obsolete. Rather than
remove the obsolete definitions and leave behind a file containing
only the two definitions that are used, move those useful definitions
to ol_txrx_types.h and completely remove txrx.h.

A side effect of this change is that a couple of unrelated files no
longer build because some of their dependencies were being met as a
side effect by txrx.h including other files. To solve the build issues
explicitly include the necessary header files where they are needed.

Change-Id: Ic3e3b36939e4ab04831d41a1e230bfab3da086a2
CRs-Fixed: 2363231
2018-12-10 20:20:45 -08:00
nshrivas
500bd72fc3 Release 5.2.0.111B
Release 5.2.0.111B

Change-Id: Ic02c48816edde4c5054ee0e665d13a9425085338
CRs-Fixed: 774533
2018-12-10 15:12:25 -08:00
Amar Singhal
b5bdce6069 qcacld-3.0: Ignore user regulatory hint conditionally
Ignore user regulatory hint conditionally if it does not have sub-type
NL80211_USER_REG_HINT_CELL_BASE. For mobile devices, do not accept user
configuration from other sub-types.

Change-Id: I5990e8f4a80eebb56760e0034e397529ef77eefb
CRs-Fixed: 2362693
2018-12-10 15:12:24 -08:00
Amar Singhal
05b103ff39 qcacld-3.0: Validate hostapd country code
Hostapd is expected to use country code already programmed in the driver.
Therefore, validate the country code sent by hostapd. Enable SAP 11d only
if country code from hostapd is same as driver country code.

Change-Id: I88d6603f4e696c86ffb85b798221d750f71b741b
CRs-Fixed: 2359333
2018-12-10 15:12:21 -08:00
nshrivas
60ae163d3e Release 5.2.0.111A
Release 5.2.0.111A

Change-Id: Ic60d4c5ee7eb97ce32a6b4439d0ab593ac6a5fbb
CRs-Fixed: 774533
2018-12-10 12:49:57 -08:00
gaurank kathpalia
379e05c97a qcacld-3.0: Update the sap channel only after sap start event
In the case of SAP restart due to a RADAR, or force SCC
due to STA vdev formed, in the SAP restart path
the driver updates the SAP channel in the global
AP context, and then sends the command to change the channel
to south bound layers to process, which may reject or accept
the command.
If the command has been accepted, the channel in the
global config would be the same as the channel configured
in the restart path, but for a case where the command was rejected
by the south bound, due to a concurrency check, or other reasons
the SAP remains on the previous channel in SCC, or MCC, with the
STA interface, but the channel in the global config is same as that
given in the restart path, so the real operating channel, and the
config channel are different.
Because of this if a fresh bringup of some vdev is to be done
according to the channel of the SAP, that would fail in some cases
( SAP on DFS channel, and STA coming, so the driver would reject MCC,
and SCC) which could be avoided if the channel of the SAP wouldnt be
configured in the restart path, and would be configured in the callback
of SAP.
Also the secondary channel of the SAP was configured as the secondary
channel configured at time of fresh SAP bringup, hence the sec channel
isn't updated after every restart of SAP.

Fix is to configure the channel of in the global AP context
only when the SAP START or CHANNEL CHANGE event comes for
the SAP. Also update the secondary channel after the CSA.

Change-Id: I6cbc31cae4958c0d7da79d4640e5ad8b1ce98338
CRs-Fixed: 2355420
2018-12-10 12:49:57 -08:00
nshrivas
4c8e6be021 Release 5.2.0.111
Release 5.2.0.111

Change-Id: I13721a5e81832b93fb6d28af5a7eac53ac26e87c
CRs-Fixed: 774533
2018-12-10 07:23:14 -08:00
Yeshwanth Sriram Guntuka
334aa8de95 qcacld-3.0: Add MLME CFG items of FE_WLM and FE_RRM
Add the following WLM and RRM ini configs to MLME
cfg:
CFG_LATENCY_ENABLE
CFG_LATENCY_LEVEL
CFG_LATENCY_FLAGS_NORMAL
CFG_LATENCY_FLAGS_MOD
CFG_LATENCY_FLAGS_LOW
CFG_LATENCY_FLAGS_ULTLOW
CFG_RRM_ENABLE
CFG_RRM_MEAS_RAND_INTVL
CFG_RM_CAPABILITY

Change-Id: I714aca1e9bc6d3c330934753364d7f58d93a28d7
CRs-Fixed: 2353103
2018-12-10 07:23:13 -08:00
nshrivas
3babed5263 Release 5.2.0.110Z
Release 5.2.0.110Z

Change-Id: I15cdb13526aacfb941ffb64c8f59b95d0413179a
CRs-Fixed: 774533
2018-12-10 05:36:45 -08:00
Rakshith Suresh Patkar
0f6375c2b7 qcacld-3.0: Enable use of new htt header format
If FW supports new htt format include only payload length in
the header length.

Change-Id: Ia668d73dcae3eb4adc1a4cfb0498b34d8c38f522
CRs-Fixed: 2361564
2018-12-10 05:36:45 -08:00
nshrivas
dd94289325 Release 5.2.0.110Y
Release 5.2.0.110Y

Change-Id: Ibfb3871cea0d5a19febe5bbac7e99a209c21e83d
CRs-Fixed: 774533
2018-12-10 02:07:02 -08:00
Jeff Johnson
6606fe5561 qcacld-3.0: Remove unused DP CFG from struct cds_config_info
Previously change If7ad0e02c65e04ea13a308e680c9ba3b3d84ae25,
("qcacld-3.0: Add legacy DP CFG items and APIs") relocated support for
some datapath INI items from HDD to the legacy data path. As part of
this change some fields in struct cds_config_info are no longer being
used, so remove those fields.

Change-Id: I2ebcb5bd3964af7847b55d3d7300efd4823dc198
CRs-Fixed: 2363230
2018-12-10 02:07:01 -08:00
Jeff Johnson
10c50c4f99 qcacld-3.0: Remove CDS fw_state handling
Previous change I8331367dd41dd0cedfa65c63f1bb3ffcb535e1c9
("qcacld-3.0: Call icnss API to check if WLAN FW is down") relocated
the source of firmware status from the wlan driver to the platform
driver. The legacy fw_state handling in CDS is no longer used, so
remove it.

Change-Id: Id8de0bd9441ecf7bb7e5931c503e16b62cbcfbf8
CRs-Fixed: 2363229
2018-12-10 02:06:57 -08:00
Jeff Johnson
56bc912552 qcacld-3.0: Remove struct cds_sme_cbacks
The functionality previously provided by struct cds_sme_cbacks has
been incorporated into the policy manager, and the struct is now
unused, so remove it.

Change-Id: Ia30cc18b5338073b9c96a29ca12b1383d31b4990
CRs-Fixed: 2363228
2018-12-10 02:06:53 -08:00
Jeff Johnson
c8cf0be658 qcacld-3.0: Remove assorted tBA typedefs
The current generation of the driver has never used typedefs
tBADirection, tBAEnable, tBAPolicy, or tBAPolicyType. Since these are
obsolete remnants, remove them.

Change-Id: I27645a6d4a1d9f472fbe204aea96f3ec9539a7c2
CRs-Fixed: 2363227
2018-12-10 02:06:49 -08:00
Jeff Johnson
11daeffc6e qcacld-3.0: Remove typedef tSirMacPropIE
The current generation of the driver has never used typedef
tSirMacPropIE. Since it is an obsolete remnant, remove it.

Change-Id: I120162ffc62be87d7f4616abd0cb265799aeaf06
CRs-Fixed: 2363226
2018-12-10 02:06:45 -08:00
Jeff Johnson
e2f016ef82 qcacld-3.0: Remove typedef tPacketType
The current generation of the driver has never used typedef
tPacketType. Since it is an obsolete remnant, remove it.

Change-Id: If59f5bd145895c6821635a7e4099090f2db096c2
CRs-Fixed: 2363225
2018-12-10 02:06:41 -08:00
Jeff Johnson
8d2b7e6955 qcacld-3.0: Remove typedef tSirSmeTkipCntrMeasReq
Previously change I7ff4dfb455daa464379b8d6a65e0a4cd3eb75570
("qcacld-3.0: Remove obsolete eWNI_SME_TKIP_CNTR_MEAS_REQ") removed
the only reference to typedef tSirSmeTkipCntrMeasReq, so remove it as
well.

Change-Id: I10ef269ae5e551c4a7b7dfb80418bb3d372a7437
CRs-Fixed: 2363224
2018-12-10 02:06:37 -08:00
Jeff Johnson
572da56447 qcacld-3.0: Remove typedef tAni64BitCounters
Previous change I112d7ffb9a7d1b011f37ce2893cb0149a5703da7
("qcacld-3.0: Remove typedef tAniSecurityStat") removed the last
references to typedef tAni64BitCounters, so remove it as well.

Change-Id: I9327c3654acd10ed6e535748f322546578f14afc
CRs-Fixed: 2363223
2018-12-10 02:06:33 -08:00
Jeff Johnson
2a606293b5 qcacld-3.0: Remove typedef tAniSecurityStat
Previous change I2aa270b6c3b90fb0b631c01ad873fbf2852764ed
("qcacld-3.0: Remove typedef tAniSecStats") removed the only
references to typedef tAniSecurityStat, so remove it as well.

Change-Id: I112d7ffb9a7d1b011f37ce2893cb0149a5703da7
CRs-Fixed: 2363222
2018-12-10 02:06:29 -08:00
Jeff Johnson
2c69df696c qcacld-3.0: Remove typedef tAniSecStats
Previous change I57c06c4506bfbd57dd283c03c4bd78c34727672b
("qcacld-3.0: Remove typedef tAniStaStatStruct") removed the only
references to typedef tAniSecStats, so remove it as well.

Change-Id: I2aa270b6c3b90fb0b631c01ad873fbf2852764ed
CRs-Fixed: 2363221
2018-12-10 02:06:25 -08:00
Jeff Johnson
585f17cbc9 qcacld-3.0: Remove typedef tAniTxRxStats
Previous change I57c06c4506bfbd57dd283c03c4bd78c34727672b
("qcacld-3.0: Remove typedef tAniStaStatStruct") removed the only
references to typedef tAniTxRxStats, so remove it as well.

Change-Id: I812d5db78d8058937d0de86ab98e5933374cf495
CRs-Fixed: 2363220
2018-12-10 02:06:21 -08:00
Jeff Johnson
986e19bb44 qcacld-3.0: Remove typedef tAniStaStatStruct
Previous change Id38087da738a2ee8bb16d4dff297420231476986
("qcacld-3.0: Remove tSirSmeDisassoc* perStaStats field") removed the
only references to typedef tAniStaStatStruct, so remove it as well.

Change-Id: I57c06c4506bfbd57dd283c03c4bd78c34727672b
CRs-Fixed: 2363219
2018-12-10 02:06:17 -08:00
Jeff Johnson
f902cfb899 qcacld-3.0: Remove tSirSmeDisassoc* perStaStats field
Both tSirSmeDisassocRsp and tSirSmeDisassocInd contain a perStaStats
field that isn't used, so remove it from both structs.

Note that these perStaStats fields were the only places that
tAniStaStatStruct was used, so remove that as well.

Change-Id: Id38087da738a2ee8bb16d4dff297420231476986
CRs-Fixed: 2363218
2018-12-10 02:06:14 -08:00
Jeff Johnson
8d4fa056ae qcacld-3.0: Remove obsolete WEXT macros
The following macros are no longer used, so remove them:
- HDD_FINISH_ULA_TIME_OUT
- HDD_SET_MCBC_FILTERS_TO_FW
- HDD_DELETE_MCBC_FILTERS_FROM_FW

Change-Id: I6d7b3ee1c1d6fce5c19d8a3b7dd2034c220a98e4
CRs-Fixed: 2363217
2018-12-10 02:06:09 -08:00
Jeff Johnson
b6b815eccf qcacld-3.0: Remove hdd_unregister_hostapd() prototype
Previously change Ib22dfa375217a48448c5a7872a9a2ed154dd862f
("qcacld-3.0: Refactor & fix the SAP HDD APIs to maintain symmetry")
removed the implementation of hdd_unregister_hostapd() but it failed
to remove the prototype, so remove it now.

Change-Id: I5ee4bebc85395833e667b182e6a2858f0814d883
CRs-Fixed: 2363215
2018-12-10 02:06:05 -08:00
Jeff Johnson
1e780687e4 qcacld-3.0: Remove obsolete hdd_green_ap_update_config() stub
Previously change I2cfee273ffbcefcd3294cc1a18fb58549166c55b
("qcacld-3.0: Green ap CFG convergence") removed the implementation of
hdd_green_ap_update_config(), but it failed to remove the inline stub
implementation for use when WLAN_SUPPORT_GREEN_AP was not enabled, so
remove it now.

Change-Id: I08bee34b1a42de0147c0e3701162b70ff5a21f21
CRs-Fixed: 2363214
2018-12-10 02:06:02 -08:00
nshrivas
7a0ef3dd5d Release 5.2.0.110X
Release 5.2.0.110X

Change-Id: I05b9fc0c0d64993b8b5836fbb26e3105389907a6
CRs-Fixed: 774533
2018-12-10 00:20:34 -08:00
Sourav Mohapatra
a094392f11 qcacld-3.0: Do not register frames in FTM mode after SSR
During driver re init after SSR, all the previous adapters that were up
get re-initialized. In the case when SSR was triggered in FTM mode with
an interface up, the re_init path tries to register management frames.
As in FTM mode the message processor is not invoked, the memory
allocated by the register frames method is not freed in any context.
This leads to memory leak during the next call to
hdd_wlan_stop_modules.

Add a check in wlan_hdd_cfg80211_register_frames so as not to continue
with the registration if the driver mode if FTM.

Change-Id: I3cb8aa14d5298c0a76c0f30ca7cf1f0e7ad88dde
CRs-Fixed: 2351672
2018-12-10 00:20:34 -08:00
nshrivas
9cf6e9891f Release 5.2.0.110W
Release 5.2.0.110W

Change-Id: Id8891f5e2a1d1b6142dd81e00736c1a2573fee7a
CRs-Fixed: 774533
2018-12-08 07:40:42 -08:00
nshrivas
d3f6e4ce5f Release 5.2.0.110V
Release 5.2.0.110V

Change-Id: I3abade29b3895aac5c6b6c74730c06a5fa3ba65d
CRs-Fixed: 774533
2018-12-07 15:53:12 -08:00
Jeff Johnson
6d0b75be6e qcacld-3.0: Remove wlansap management frame registrar
The following wlansap management frame registration functions are
unused, so remove them:
- wlansap_register_mgmt_frame()
- wlansap_de_register_mgmt_frame()

Change-Id: Ib8865fbda4e65e7bbd39576a49423f60426d489a
CRs-Fixed: 2361909
2018-12-07 15:53:06 -08:00
Alok Kumar
e197744efb qcacld-3.0: Send peer unmap confirmation cmd to FW
Send WMI_PEER_UNMAP_CONF_CMDID to FW after getting all
UNMAPs for the peer. This will ensure synchronization
between MAP/UNMAP and same peer_id won't be used for
different MAC address until all UNMAPs are processed.

Change-Id: I2c7793b527d5dbab0f9571185e6c16e0c6b7fcc3
CRs-Fixed: 2357245
2018-12-07 15:53:01 -08:00
jiad
a6df1a3b7b qcacld-3.0: Define status variable to fix build failure
status variable is not defined but it is being used which creates
build failures when FEATURE_AP_MCC_CH_AVOIDANCE is defined, thus
define the variable ..

Change-Id: Icd4b3616832c09577c19e7e65f7ce30134b4fd59
CRs-Fixed: 2362845
2018-12-07 15:51:57 -08:00
nshrivas
2e0f3540b1 Release 5.2.0.110U
Release 5.2.0.110U

Change-Id: I39de713968e02eb59537bfd3eb67d4c31b99ef50
CRs-Fixed: 774533
2018-12-07 11:18:50 -08:00
Jeff Johnson
71d465ac42 qcacld-3.0: Correctly dump the LIM global MLM state
Currently in the "getHostStates" ioctl handler a call is made to
sme_get_lim_sme_state() to retrieve the LIM global MLM state. That is
the wrong function. Update the logic to call the correct function,
sme_get_lim_mlm_state().

Change-Id: I53151ba817b0ee9f4cf141e29dbf4e8c8c4b92e4
CRs-Fixed: 2361830
2018-12-07 11:18:46 -08:00
Jeff Johnson
8c3ecdd8d8 qcacld-3.0: Fix csr_api_scan.c function style issues
Many of the function signatures in csr_api_scan.c do not conform to
the coding style, so make them conforming.

Change-Id: I50a46c2227b639af652b4e21d3a84d62140fce2c
CRs-Fixed: 2361755
2018-12-07 11:18:42 -08:00
Jeff Johnson
70fa7bb88d qcacld-3.0: Remove obsolete csr_api_scan.c macros
The file csr_api_scan.c defines multiple macros, most of which are
not actually used by the current version of the code, so remove the
obsolete ones.

Change-Id: Ic3c64dea55ab19bbf1f39b52eedca121aef5bd25
CRs-Fixed: 2361754
2018-12-07 11:18:38 -08:00
nshrivas
e361dbf7c0 Release 5.2.0.110T
Release 5.2.0.110T

Change-Id: Ice1c6d282999db0c1281086d87d7132c47f90604
CRs-Fixed: 774533
2018-12-07 09:40:36 -08:00
Jeff Johnson
fb1b1f9bd0 qcacld-3.0: Remove obsolete wma_is_*_active()
The following functions are unused, so remove them:
- wma_is_sap_active()
- wma_is_p2p_go_active()
- wma_is_p2p_cli_active()
- wma_is_sta_active()

Change-Id: I801176fb2b4df9308744fcde27dc789e88e1e550
CRs-Fixed: 2361895
2018-12-07 09:40:36 -08:00
nshrivas
f4226f027a Release 5.2.0.110S
Release 5.2.0.110S

Change-Id: Iade6fea86db8b678fc565ab152d482413880a3a2
CRs-Fixed: 774533
2018-12-07 04:28:10 -08:00
nshrivas
55c23abe4d Release 5.2.0.110R
Release 5.2.0.110R

Change-Id: I02edc0ed7c2ac544f6a47d38dfab5095f123b6e8
CRs-Fixed: 774533
2018-12-07 02:39:23 -08:00
Jeff Johnson
8e0bcbda37 qcacld-3.0: Remove macro OL_TXRX_INVALID_TDLS_PEER_ID
Previously change I983851d8cc0d3605c3d6bd0d8975c72844f71740
("qcacld-3.0: TDLS: remove remaining legacy code") removed the last
references to macro OL_TXRX_INVALID_TDLS_PEER_ID, but did not remove
the macro itself, so remove it now.

Change-Id: I8cceb66b8b52ae55cceb3400d2fdc2bb618b73cd
CRs-Fixed: 2362723
2018-12-07 02:39:23 -08:00
nshrivas
9e7b303024 Release 5.2.0.110Q
Release 5.2.0.110Q

Change-Id: Icb99ad782eafebbd10a986e7024db370a2f8fdaa
CRs-Fixed: 774533
2018-12-07 00:53:55 -08:00
Jeff Johnson
13be96fda3 qcacld-3.0: Remove wlan_hdd_tdls_set_params() prototype
Previously change I5c873b9571228f0d2b4fcd4782267a2cc40fc20a
("qcacld-3.0: Remove the deprecated IOCTL in TDLS") removed the
implementation of wlan_hdd_tdls_set_params() but failed to remove the
prototype, so remove it now.

Change-Id: I0fa178bc92bc2a02e45d1ec577f9a54f40d559fb
CRs-Fixed: 2362722
2018-12-07 00:53:54 -08:00
Jeff Johnson
41d1f7bc89 qcacld-3.0: Remove hdd_tdls_notify_p2p_roc() stub
Previously change Ia860904685fc4783453491effa4518777c7406d0
("qcacld-3.0: TDLS: remove legacy interfaces") removed the "real"
implementation of hdd_tdls_notify_p2p_roc(), but it left behind the
stub implementation for use when FEATURE_WLAN_TDLS is not enabled, so
now remove the stub.

Change-Id: Ic7c95c41fe66378bc51785b28010ed2263fd3b55
CRs-Fixed: 2362721
2018-12-07 00:53:50 -08:00
Jeff Johnson
b62fd65aff qcacld-3.0: Fix typo "pAadapter"
Previously all instances of the identifier "pAdapter" were renamed
within the driver. However the hdd_enable_default_pkt_filters()
prototype had a misspelling and hence it was not renamed, so rename it
now.

Change-Id: I6b2045496e5e6775dc12061254d06bcadf60be88
CRs-Fixed: 2362720
2018-12-07 00:53:46 -08:00
Jeff Johnson
6a3f237a64 qcacld-3.0: Remove wlan_hdd_roc_request_dequeue() prototype
Previously change Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d
("qcacld-3.0: Remove legacy P2P codes in HDD") removed function
wlan_hdd_roc_request_dequeue() but did not remove the prototype, so
remove it now.

Change-Id: Ic2eb217b3974b274e890c1c556eece9e688463b4
CRs-Fixed: 2362719
2018-12-07 00:53:42 -08:00
nshrivas
65d62740ec Release 5.2.0.110P
Release 5.2.0.110P

Change-Id: I90a26744b57c1c7d8aedde0662ac116d1ebda790
CRs-Fixed: 774533
2018-12-06 23:10:05 -08:00
Jeff Johnson
d01ca84c73 qcacld-3.0: Remove last bit of LIBRA_LINUX_PC feature code
A prior version of the driver had LIBRA_LINUX_PC feature code, but it
has all been removed except for one piece, so remove that last bit
which conditionally defines HDD_TX_TIMEOUT.

Change-Id: Ie714b134b789a4649f8da7bbf5e98f36d27ed4ff
CRs-Fixed: 2362718
2018-12-06 23:10:05 -08:00
Jeff Johnson
67fe4b117c qcacld-3.0: Remove obsolete struct action_pkt_buffer
HDD defines struct action_pkt_buffer, but it is unused, so delete it.

Change-Id: Ie3b92d10c7a3c9445edf953dea398372825db4a2
CRs-Fixed: 2362717
2018-12-06 23:10:01 -08:00
Jeff Johnson
e5a783de59 qcacld-3.0: Remove obsolete hdd_lro_init() stub
Change I15535827a03953231670d4138235c4876b16e045 ("qcacld-3.0: Add GRO
support for STA mode") removed the implementation of hdd_lro_init(),
but it failed to remove the inline stub implementation for use when
FEATURE_LRO was not enabled, so remove it now.

Change-Id: Ie835fdd08322c8968333e264d1228586261b5d59
CRs-Fixed: 2362716
2018-12-06 23:09:57 -08:00
Jeff Johnson
362b08ff74 qcacld-3.0: Remove obsolete CDS Packet Tracking macros
CDS contains a set of CDS_PKT_TRAC_* macros that were used by a prior
version of the driver. The current driver uses a different mechanism,
so remove the now unused CDS_PKT_TRAC_* macros.

Change-Id: I4f0e3a44e6786d3ed03e22807811878b2a187185
CRs-Fixed: 2362715
2018-12-06 23:09:53 -08:00
nshrivas
85076dfadb Release 5.2.0.110O
Release 5.2.0.110O

Change-Id: I9987a83eae5edf8ec778147509f2682dfd678a92
CRs-Fixed: 774533
2018-12-06 21:03:43 -08:00
Jeff Johnson
85cd2e7c65 qcacld-3.0: Remove ol_rx_queue_len from cds_sched_context
The cds_sched_context contains an ol_rx_queue_len field that is
unused, so remove it.

Change-Id: Ib2a03a61a19424f3cb41c975a886b12f674de247
CRs-Fixed: 2362714
2018-12-06 21:03:43 -08:00
Jeff Johnson
21724f4455 qcacld-3.0: Remove obsolete struct hdd_context_s reference
In CDS there is a forward reference to struct hdd_context_s, However
this forward reference is not used, and in fact that struct name is no
longer in use in the driver, so remove it.

Change-Id: Iecf43870b22143f656bb9b8e413ae46c2f59bab4
CRs-Fixed: 2362713
2018-12-06 21:03:40 -08:00
Jeff Johnson
5f32b68b21 qcacld-3.0: Remove obsolete cds_packet definitions
The cds_packet infrastructure has been partially converted to QDF.  As
a result some of the legacy definitions are no longer being used, so
remove them.

Change-Id: I6827c08c3f39da8b0a561d6c3e4fe6f7eb528a25
CRs-Fixed: 2362712
2018-12-06 21:03:36 -08:00
Jeff Johnson
67107fd8e4 qcacld-3.0: Rename pDphHashTable
The identifier pDphHashTable does not conform to the Linux coding
standard, so rename it hash_table.

Change-Id: Icd76163766cb542d62ac6ad476079a0ec7f41b2d
CRs-Fixed: 2361806
2018-12-06 21:03:32 -08:00
Jeff Johnson
ace219da57 qcacld-3.0: Replace typedef dphHashTableClass
The naming and usage of typedef dphHashTableClass does not conform to
the Linux coding style, so replace it with struct dph_hash_table.
Rename dph_hash_table_class_init() as well to match the new naming.

Change-Id: I38df3c01736dfbeff3d51be05582ebfe69c1353b
CRs-Fixed: 2361805
2018-12-06 21:03:28 -08:00
nshrivas
96cec3c413 Release 5.2.0.110N
Release 5.2.0.110N

Change-Id: I9d5d515e7cd6944ab727586d8024915fd147898b
CRs-Fixed: 774533
2018-12-06 19:23:18 -08:00
Jeff Johnson
22a60cd5db qcacld-3.0: Remove wma_update_vdev_tbl() prototype
Although the implementation has been removed, the prototype for
wma_update_vdev_tbl() is still present, so remove it as well.

Change-Id: Ifcf10e97d0bc24bdf88c69f936e998b228ec945b
CRs-Fixed: 2361930
2018-12-06 19:23:17 -08:00
Jeff Johnson
7bdfab6ce6 qcacld-3.0: Remove wmi_unified_pdev_set_param() prototype
WMA has a prototype for wmi_unified_pdev_set_param(), but there is no
implementation, so remove it.

Change-Id: Id39afc1a1966bca9b8b947bb0b2c89f5d1b21801
CRs-Fixed: 2361995
2018-12-06 19:23:14 -08:00
Jeff Johnson
56174d1a2a qcacld-3.0: Remove obsolete P2P Listen Offload from WMA
Almost all of the p2p Listen Offload logic has been componentized,
therefore remove the following unused functions from WMA:
- wma_p2p_lo_start()
- wma_p2p_lo_stop()
- wma_p2p_lo_event_handler()

Change-Id: I750870ccbe84e817954a3ee1a50e2e8daa5ab661
CRs-Fixed: 2361886
2018-12-06 19:23:10 -08:00
Jeff Johnson
a4541e9f43 qcacld-3.0: Remove wma_p2p_noa_event_handler()
The functionality previously handled by wma_p2p_noa_event_handler() is
now done in WMI. Since wma_p2p_noa_event_handler() is no longer used,
remove it.

Change-Id: Id8095a79fee6be83c886a1635a1ce0b1a2e4087b
CRs-Fixed: 2361871
2018-12-06 19:23:07 -08:00
nshrivas
c4281d9744 Release 5.2.0.110M
Release 5.2.0.110M

Change-Id: I335082cbddafdc149b436225f46edd2cd0346501
CRs-Fixed: 774533
2018-12-06 17:51:08 -08:00
Krunal Soni
d2c33e171d qcacld-3.0: Move few INIs' ownership from HDD to MLME
INIs
1) gFWMccRtsCtsProtection
2) gFWMccBCastProbeResponse
3) gEnableMCCMode
4) gSapChannelAvoidance
5) gStaMiracastMccRestTimeVal

Ownership of above INIs belong to MLME component, move them from
HDD to MLME.

CRs-Fixed: 2351219
Change-Id: I3dc1b8f1f036f10a0506cb1cb8481fc865ef18f9
2018-12-06 17:51:08 -08:00
Krunal Soni
df29bc4ca5 qcacld-3.0: Move few INIs' ownership from HDD to Policy manager
INIs
1) g_mark_sap_indoor_as_disable
2) g_sta_sap_scc_on_lte_coex_chan
3) gEnableSAPManadatoryChanList
4) gForce1x1Exception
5) g_sta_sap_scc_on_dfs_chan
6) gDualMacFeatureDisable
7) gEnableOverLapCh
8) gAllowMCCGODiffBI

Ownership of above INIs belong to policy manager, move them from
HDD to Policy manager.

CRs-Fixed: 2351044
Change-Id: I6fe502697cdb9a259b8215ce5b4ad5354cb645fd
2018-12-06 17:51:02 -08:00
Jeff Johnson
6d5239bde5 qcacld-3.0: Remove struct sP2pPsParams
WMA defines struct sP2pPsParams which is unused. Since this is
obsolete, remove it.

Change-Id: I4d42f42ac9b3cd432dbebd405f7779ca6c94e937
CRs-Fixed: 2362014
2018-12-06 17:50:57 -08:00
Jeff Johnson
c559e70013 qcacld-3.0: Remove struct sTdlsLinkEstablishParams
WMA defines struct sTdlsLinkEstablishParams which is unused. Since
this is obsolete, remove it.

Change-Id: I2a28564ccb5ad85d65a62a5e9f0ac6c500a80c2d
CRs-Fixed: 2362013
2018-12-06 17:50:54 -08:00
nshrivas
35b3a2822a Release 5.2.0.110L
Release 5.2.0.110L

Change-Id: Id87a9e3db44a315ab162fae45d4992e69e8396ea
CRs-Fixed: 774533
2018-12-06 13:44:04 -08:00
Jeff Johnson
dca4e096ae qcacld-3.0: Remove typedef eCsrDot11FragThresh
The eCsrDot11FragThresh typedef, along with its member enumerations,
are unused, so remove them.

Change-Id: Ie57bf437072767b8befab8d28bb86b416737d137
CRs-Fixed: 2361343
2018-12-06 13:44:04 -08:00