Commit Graph

11945 Commits

Author SHA1 Message Date
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