Commit Graph

9413 Commits

Author SHA1 Message Date
Rachit Kankane
0247191755 qcacld-3.0: Align structure to reduce Data Segment
Aligning structure variables properly can reduce memory requirement
of data segment. Thereby reduces over all memory requirement.

Change-Id: I8b1a704cb6ed852d23111b6ee9d14c883b889a78
CRs-Fixed: 2203674
2018-03-12 03:20:55 -07:00
nshrivas
af97bb20ed Release 5.2.0.69E
Release 5.2.0.69E

Change-Id: I7e4c3e0dfd01e37246331f45b3da8d8c12097c24
CRs-Fixed: 774533
2018-03-11 22:34:50 -07:00
Sourav Mohapatra
412ceb9fbf qcacld-3.0: Allow vendor command to run without interface up
In the present scenario, the vendor command
wlan_hdd_cfg80211_get_logger_supp_feature has the flag
WIPHY_VENDOR_CMD_NEED_RUNNING set which requires the net device
to be up and running for the API to work. This is not necessary
as the command doesnot need the net dev to be active.

Remove the flag so that the command returns the proper results
even when the net device is not running

Change-Id: I2dd9d801aa474cda2a3f6292d6b94df18797be02
CRs-Fixed: 2202096
2018-03-11 22:34:49 -07:00
nshrivas
9bb7ba43de Release 5.2.0.69D
Release 5.2.0.69D

Change-Id: Idb776e953099ea951df63d5c997cead7cad0f83b
CRs-Fixed: 774533
2018-03-11 01:25:56 -08:00
Arif Hussain
eb8ba363b1 qcacld-3.0: Send edca params to firmware
Send all user requests to update edca parms to firmware.

Change-Id: I2b7e884d004c94f71bb5c29583b188ce3681ab0b
CRs-Fixed: 2202046
2018-03-11 01:25:56 -08:00
nshrivas
eccbc8842c Release 5.2.0.69C
Release 5.2.0.69C

Change-Id: Ib6b7c967e81553e4074bbe44abb09163002e63e9
CRs-Fixed: 774533
2018-03-10 01:07:46 -08:00
Min Liu
a3e84abadc qcacld-3.0: Add NULL pointer check
Add NULL pointer check for reg_cap_ptr in
hdd_objmgr_create_and_store_pdev

Change-Id: I379e227302f70d83e26a8a418889f7718dc5a0dd
CRs-Fixed: 2202943
2018-03-10 01:07:45 -08:00
nshrivas
5d2c3ccccf Release 5.2.0.69B
Release 5.2.0.69B

Change-Id: I8d27c1b5548d8a00b62eabd76cd8306f8e163d71
CRs-Fixed: 774533
2018-03-09 17:30:24 -08:00
Krunal Soni
01507bd566 qcacld-3.0: (PART-3) Remove obsoleted enums in SME module
Remove some of the obsoleted enums and structure's members
in SME module

Change-Id: Ia453fcd2ba41a939964b6e481195c6bc64de6ab6
CRs-Fixed: 2201799
2018-03-09 17:30:23 -08:00
Krunal Soni
e608a27cb8 qcacld-3.0: Remove obsoleted INI called gFixedRate
Latest driver is not using "gFixedRate" INI anymore and this INI
is not doing any meaningful work, so remove it.

Change-Id: Icf7ef052a722f25c4338dd8086b14ce01c6176d8
CRs-Fixed: 2201799
2018-03-09 17:30:20 -08:00
Krunal Soni
cbfdb12cfa qcacld-3.0: (PART-2) Remove obsoleted APIs in SME module
Remove some of the obsoleted APIs in SME module

Change-Id: Ia4f890706769e5ace1dcff2d57fb33f6e67e1297
CRs-Fixed: 2201799
2018-03-09 17:30:18 -08:00
Krunal Soni
795f9c2733 qcacld-3.0: (PART-1) Remove obsoleted APIs in SME module
Remove some of the obsoleted APIs in SME module

Change-Id: If865445d564a89bde133ca32272fff9594ce44fd
CRs-Fixed: 2201799
2018-03-09 17:30:15 -08:00
nshrivas
73de27ca93 Release 5.2.0.69A
Release 5.2.0.69A

Change-Id: I10eddbb794bff4119eb3b34444066263d56575d6
CRs-Fixed: 774533
2018-03-09 00:10:34 -08:00
Kiran Kumar Lokere
3324f63c57 qcacld-3.0: Add support to set no ack policy for ac
Add support to configure no ack policy for WMM access category.

Change-Id: Idf87507b78cdaf0ac8fdfc975e4fcbe0957423fa
CRs-Fixed: 2198241
2018-03-09 00:10:33 -08:00
nshrivas
41e4cc6ece Release 5.2.0.69
Release 5.2.0.69

Change-Id: Ia786bc81ea46e330272d657b388f0fe12084e2c0
CRs-Fixed: 774533
2018-03-08 22:06:04 -08:00
Venkata Sharath Chandra Manchala
1e58110314 qcacld-3.0: Forward channel id to txrx_stats
Forward channel id to txrx_stats to set the right pdev mask
in htt stats msg

Change-Id: Iab0e565d3e827b0fcbe65c24d4de431a3aee0248
CRs-Fixed: 2194439
2018-03-08 22:06:04 -08:00
Kiran Kumar Lokere
bc87bec984 qcacld-3.0: Add support to send ADDBA with user config
Add support to send ADDBA request with user configured buffer
size and tid and ADDBA response with user configured buffer
size.

Change-Id: I2a1dfedadeb68a1cfca9a6eba8e7775d0bb51d1a
CRs-Fixed: 2193872
2018-03-08 22:06:01 -08:00
nshrivas
aa6bc1b069 Release 5.2.0.68Z
Release 5.2.0.68Z

Change-Id: I536b85c1aae4b31fb677ba12e83ad27f335386d5
CRs-Fixed: 774533
2018-03-08 18:46:54 -08:00
Dustin Brown
ed76c198c8 qcacld-3.0: Fix PERF build issue in PMO (part 2)
Building CLD3.2 with a performance configuration results in several
"potentially uninitialized" warnings. Initialize the relevant variables
to avoid the warnings.

Change-Id: I6a4324cb313dfb9d3b4c82294bc2fc8ce357fd0b
CRs-Fixed: 2202533
2018-03-08 18:46:54 -08:00
Naveen Rawat
d24c116d75 qcacld-3.0: Program phymode before channel width for CSA handling
In CSA handling after vdev restarts, program peer_phymode before peer_ch_wd
to firmware, since firmware cannot handle higher channel width than current
peer_phymode.

Change-Id: I12ce1a6e6c0af758e1ecc9c1d272320e5e800983
CRs-Fixed: 2201944
2018-03-08 18:46:51 -08:00
Arif Hussain
2f2d351cc1 qcacld-3.0: Update bss color on bss color switch count zero
Update bss color on color switch count zero.

Change-Id: I60eadd5454768bc1a5cabaead4ce1f966e4a0f6b
CRs-Fixed: 2200419
2018-03-08 18:46:48 -08:00
Will Huang
5561cb3c00 qcacld-3.0: Add load/unload status check before wlan_hdd_mgmt_tx
If wlan_hdd_mgmt_tx is called while unload in progress, it is possible
ROC scan can't be canceled, cds_ssr_protect already prevent
wlan_hdd_mgmt_tx running before unloading, we must also prevent it
running after it.

Change-Id: Ic8d981c9be2a2b33079c4e3c9a18a4d8bce48956
CRs-Fixed: 2202026
2018-03-08 18:46:44 -08:00
Abhishek Singh
3ed00d11ba qcacld-3.0: Avoid TDLS entry with MAC same as existing non-TDLS peer
In lim_tdls_setup_add_sta() even if a pStaDs is already present and
is a non TDLS peer, the driver proceed assuming it as TDLS peer and
update its type and states.

Now when driver tries to delete this non TDLS peer, as its states
and type are modified it fails to properly clean up the peer.

Fix it by allowing only TDLS entry to be updated. Also ignore if a
entry is already present and the operation is TDLS add.

Change-Id: I65fc73d65cdf768fd5b8afd050ca7314fd55c9ff
CRs-Fixed: 2200498
2018-03-08 18:46:41 -08:00
Rachit Kankane
b103562c27 qcacld-3.0: Add HTC Credit History Feature flag
Add compilation flag to compile out HTC credit History
feature cleanly from the cld-3.2 driver binary.

Change-Id: I5f5e73e430d282c99d3077fb82ed1cb8eb79715a
CRs-Fixed: 2190545
2018-03-08 18:46:38 -08:00
Jeff Johnson
111ad91fa3 qcacld-3.0: Remove obsolete hdd_qdf_event
Change "qcacld-3.0: Use Request Manager for ioctl getWlanStats"
removed the only user of item hdd_qdf_event in struct hdd_wext_state,
so completely remove it.

Change-Id: Ifc00f6dc396ca5f6e59b3895a6c9467179073218
CRs-Fixed: 2202506
2018-03-08 10:32:50 -08:00
Jeff Johnson
ced658b0aa qcacld-3.0: Use Request Manager for ioctl getWlanStats
Currently the handling of private ioctl getWlanStats uses a legacy
mechanism for coordinating the request with the response. Change this
to use the HDD Request Manager.

Change-Id: I7e8333cf8d2e651e04509e3370c30d8a6425bdca
CRs-Fixed: 2202504
2018-03-08 10:26:46 -08:00
Jeff Johnson
d37833f995 qcacld-3.0: Relocate hdd_statistics_cb()
Function hdd_statistics_cb() is registered as a callback function by
__iw_get_statistics() when calling sme_get_statistics(). Since
hdd_statistics_cb() and __iw_get_statistics() are tightly coupled it
makes sense for them to be co-located, but currently they are
not. Therefore relocate hdd_statistics_cb() to be adjacent to
__iw_get_statistics(). Note that this is a precursor to further
cleanup of this pair of functions.

Change-Id: Ie36d107d9ef2e541444c5fb9d7bfba7e9e82c1e6
CRs-Fixed: 2201907
2018-03-08 10:24:25 -08:00
nshrivas
cb37b44fe7 Release 5.2.0.68Y
Release 5.2.0.68Y

Change-Id: I37e6b7750067dd8008bce90b475b13dc41e6dbbb
CRs-Fixed: 774533
2018-03-07 17:28:51 -08:00
Jeff Johnson
a8ce12744d qcacld-3.0: Remove unused hdd_roam_register_tdlssta() param
The parameters to function hdd_roam_register_tdlssta() currently
includes ucastSig. This "signature" parameter dates back to a previous
version of the driver that used signatures to synchronize the data
plane with the control plane. However the current version of the
driver does not use this parameter, so remove it as part of the plan
to completely remove these signatures from throughout the driver.

Change-Id: Iee51d79e58501e3e8312c6c7a21b98c1ae6bf268
CRs-Fixed: 2200886
2018-03-07 17:28:51 -08:00
Jeff Johnson
3f6c89f77d qcacld-3.0: Remove unused hdd_softap_register_sta() params
The parameters to function hdd_softap_register_sta() currently include
ucastSig and bcastSig. These "signature" parameters date back to a
previous version of the driver that used these signatures to
synchronize the data plane with the control plane. However the current
version of the driver does not use these parameters, so remove them as
part of the plan to completely remove these signatures from throughout
the driver.

Change-Id: I1f1f1fb1ef553d36ba0f4902ab29b2b4852ae5ca
CRs-Fixed: 2200356
2018-03-07 17:28:48 -08:00
nshrivas
9399ffc507 Release 5.2.0.68X
Release 5.2.0.68X

Change-Id: I3922e0e3895c19ed0d568da497f02e90a8377b4c
CRs-Fixed: 774533
2018-03-07 16:27:55 -08:00
Yeshwanth Sriram Guntuka
2d6204f944 qcacld-3.0: Add support for HW mode info vendor command
Add support for HW mode info vendor command which sends
mac id, band, interface id and frequency information for
each MAC provided by driver to userspace.

Change-Id: If1112d29b8781cf5ba0480c84feeb772142f2c0e
CRs-Fixed: 2160531
2018-03-07 16:27:54 -08:00
nshrivas
c96c04c5b2 Release 5.2.0.68W
Release 5.2.0.68W

Change-Id: I0b9067bf554931002bc880ea4e12e758b6b598cc
CRs-Fixed: 774533
2018-03-07 03:55:28 -08:00
Nirav Shah
459bebf99a qcacld-3.0: Featurize EPPING Feature
Featurize EPPING Feature to compile out
in mission mode.

Change-Id: I55a4820f0cbbac80861904a9f05721cc513e1d0c
CRs-Fixed: 2198846
2018-03-07 03:55:28 -08:00
jiad
da34c57e5d qcacld-3.0: Fix wlan load failure when IPA uc not ready
In IPA offload case, if wlan driver is loaded before IPA uC is ready,
error is returned in hdd_ipa_init, which leads to whole driver load
failure. This is not the case since IPA driver provides wlan driver
a notify callback where IPA will invoke this callback when IPA uC
is ready.

Fix is to not return error if IPA uC is not ready during wlan loading
phase.

Change-Id: I98382abbb3bb3b1176f3be41228ac260c1017c24
CRs-Fixed: 2198998
2018-03-07 03:55:24 -08:00
nshrivas
0f4eff8648 Release 5.2.0.68V
Release 5.2.0.68V

Change-Id: I5a457c84f8f8f4cc1c0a3e6f8e27b98a450dae79
CRs-Fixed: 774533
2018-03-07 01:37:34 -08:00
Padma, Santhosh Kumar
7eecb5afbb qcacld-3.0: Consider SSID from supplicant
There is a chance that SSID may be NULL in IE's received by driver
and driver publishes the same in association request which is not
expected. Always consider SSID from supplicant which is valid in
all scenarios to fix this.

Specific scenario:
OWE SSID is hidden in OWE transition mode. When supplicant detects
connection to OWE transition mode, it issues connect with required
SSID to driver. But that ssid does not present in driver scan cache
as it is hidden. Instead of this ssid, driver scan cache has NULL
entry. Driver uses this NULL entry in association request which is
not expected.

Change-Id: I7ceb712db87d6c7f73c7483f74d402b1ab3e30db
CRs-Fixed: 2197532
2018-03-07 01:37:33 -08:00
Abhishek Singh
f1c1676351 qcacld-3.0: Fix memory corruption due to wlan_hdd_add_age_ie
In wlan_hdd_add_age_ie the mgmt->u.probe_resp.variable is type casted
to qcom_ie_age, before incrementing the mgmt->u.probe_resp.variable
to get the qcom_ie_age pointer. This leads to memory corruption.

Fixed by typecasting the pointer once the qcom_ie_age pointer is
derived by incrementing the offset of qcom_ie_age from
mgmt->u.probe_resp.variable.

Change-Id: Iafcdb5c17f0d9c234687ddcc6f8b9100b21cc957
CRs-Fixed: 2201303
2018-03-07 01:37:30 -08:00
nshrivas
b903b6eeb4 Release 5.2.0.68U
Release 5.2.0.68U

Change-Id: Ic1a97882bf00a6587252460c7700216690c2e2c5
CRs-Fixed: 774533
2018-03-06 23:45:09 -08:00
Krunal Soni
40c5e4425a qcacld-3.0: Self peer req is not handled properly causes P2P failure
1) When wma_self_peer_remove() API returns failure, driver triggers
recovery without checking if driver unload is in progress which may
cause driver to go in bad state.

2) when wma_self_peer_remove() API returns success, driver releases the
memory accidently as part of I14895b0d3a19b3aaea2299311cc021ea14408f1e

Fix 1st condition by checking if driver unload is in progress. If driver
in unloading then just release the memory and return failure. If driver
is not unloading then just trigger SSR recovery, so FW can recover
silently.

Fix 2nd condition by checking the return status and release the memory
up on failure status code.

CRs-Fixed: 2197657
Change-Id: Ia08dbdac66d8641d22f6a82c29ab1a5b99309214
2018-03-06 23:45:09 -08:00
Krunal Soni
1b5debddcc qcacld-3.0: Release memory when del self sta req fails in WMA layer
The memory leak is detected in API csr_process_del_sta_session_command()
for the memory allocation of del_sta_self_req.

SME sends this message from WMA for further processing.
When WMA_DEL_STA_SELF_REQ is processed, wma_self_peer_remove() will be
called for p2p device. If wma_self_peer_remove() API is failed due to
some reason then memory needs to be freed up which is allocated through
csr_process_del_sta_session_command() API which is missing.

For any failure case, release the message memory allocated by SME either
by releasing directly in WMA when response is not required or by sending
failure response which in turn releases the memory when response is
required.

CRs-Fixed: 2192935
Change-Id: I14895b0d3a19b3aaea2299311cc021ea14408f1e
2018-03-06 23:45:06 -08:00
Rachit Kankane
85b47fca22 qcacld-3.0: Compile out WMI logging feature
Fix to compile cleanly when WMI_INTERFACE_EVENT_LOGGING
feature is disabled.

Change-Id: I7bb4b0304adf829f7f95e95795bcc60ce061d8a2
CRs-Fixed: 2192126
2018-03-06 23:45:01 -08:00
Kiran Kumar Lokere
722dccd92a qcacld-3.0: Add support to allow WEP/TKIP in HE for test
Add support for test configuration to allow WEP/TKIP in HE mode

Change-Id: I19b0620bc3b8e1f7319af5e762e565fcaba11b79
CRs-fixed: 2194497
2018-03-06 23:44:58 -08:00
nshrivas
f229a80aa8 Release 5.2.0.68T
Release 5.2.0.68T

Change-Id: Ia93b3b30b464b4d94e6b0a80b1beb32ddeb57ac3
CRs-Fixed: 774533
2018-03-06 01:51:20 -08:00
Abhishek Singh
821f09c3fc qcacld-3.0: Add logic to negotiate the auth and enc type depending on AP
In testbed sta mode the RSNE enc type and auth type may not match the
AP's enc type and auth type and thus the scan filter is unable to match
and find the AP.

Introduce auth and enc type as "ANY" in scan filter. With the auth
and enc type set as ANY, all the AP's matching the BSSID and SSID
will be filtered and the negotiated auth and enc type will be
dependent on AP's auth and enc type.

Change-Id: Ia7d573b393f7883f4c92188133734795be1781aa
CRs-Fixed: 2197223
2018-03-06 01:51:20 -08:00
Abhishek Singh
f05b0cb604 qcacld-3.0: Add logic to use common API to inform beacon
Duplicate API's are present in HDD and common code to inform the
beacon to kernel. This change removes the duplicate API from HDD
and use common API to inform beacon.

Change-Id: I1916ebd6d3c153f47533cde6a1e2e78ebaae55dc
CRs-Fixed: 2199760
2018-03-06 01:51:15 -08:00
nshrivas
294570b5b4 Release 5.2.0.68S
Release 5.2.0.68S

Change-Id: I63fd67ceacc08bbdf41ddb198ca322bd2800ca1c
CRs-Fixed: 774533
2018-03-05 23:33:27 -08:00
Dustin Brown
0b703ef927 qcacld-3.0: Remove maxWoWFilters and related
Recent changes in Power Management and Offload (PMO) have removed the
need for a configurable maximum number of WoW filters. Remove the
following relevant fields:

 * maxWoWFilters
 * CFG_MAX_WOW_FILTERS_MAX
 * WMA_STA_WOW_DEFAULT_PTRN_MAX
 * max_wow_filters
 * ol_ini_info

Change-Id: I99cc74731d6373258dc65473a8342bda0ab2786b
CRs-Fixed: 2199452
2018-03-05 23:33:27 -08:00
nshrivas
e521f86d33 Release 5.2.0.68R
Release 5.2.0.68R

Change-Id: I31b4e808969439cfb2bf56c4850b8e358ba7c6a5
CRs-Fixed: 774533
2018-03-05 22:33:44 -08:00
Mukul Sharma
ecf8e09fd5 qcacld-3.0: Disable indoor channel on sap start
There are scenario where indoor channel operations
(like  active / passive scan/connect/roam etc)
are not desired / permitted specially in sap case.
Hence add support of disabling indoor channel
on sap start and revert it on sap stop.

Change-Id: Id6e01534532e3076a3e662e6a4f71e8be924165a
CRs-fixed: 2121103
2018-03-05 22:33:43 -08:00