Commit Graph

10415 Commits

Author SHA1 Message Date
Naveen Rawat
8693677c5a qcacld-3.0: Fix typo "doesnt" in generated dot11f.c code
Fix typo "doesnt" in generated dot11f.c code.

Change-Id: I4664b10fffe771f8ba20cddbb7c7ad91cfc161b3
CRs-Fixed: 2244920
2018-06-07 12:46:46 -07:00
nshrivas
a98d76efbc Release 5.2.0.81P
Release 5.2.0.81P

Change-Id: Id094cb32264135a9a7289722882fdd2b3753e698
CRs-Fixed: 774533
2018-06-07 02:30:42 -07:00
Visweswara Tanuku
1a10e945e0 qcacld-3.0: Update stations bw info field value in VHT20 scenario
qcacld-2.0 to qcacld-3.0 propagation

After station is associatied in VHT20, update station info
txrate bw field for VHT20 case when cfg80211_get_station is
triggered

Change-Id: Ia3547083d5f4fb031fd186234b2d13126d8a9712
CRs-Fixed: 2086316
2018-06-07 02:30:40 -07:00
Rakshith Suresh Patkar
9051736a2e qcacld-3.0: Fix possible overflow in wma_stats_event_handler
The excess buffer check in wma_stats_event_handler is such that
if buflen is greater than WMI_SVC_MSG_MAX_SIZE, the resulting
difference of the two values will be a negative integer, which
will be treated as a very large positive integer since the data type
is unsigned. This will result in the check failing to detect overflow
when compared with sizeof(*event).

Fix the buflen check condition such that buflen is compared with the
difference of WMI_SVC_MSG_MAX_SIZE and sizeof(*event), eliminating
the possibility of overflow.

Change-Id: Ic20bfa554476db36e28557402cec23fcce5af85d
CRs-Fixed: 2224443
2018-06-07 02:30:36 -07:00
Visweswara Tanuku
bc115203de qcacld-3.0: Update stations bw info field value in HT20 scenario
qcacld-2.0 to qcacld-3.0 propagation

After station is associatied in HT20, when cfg80211_get_station
is triggered, update station info txrate bw field for HT20

Change-Id: Icc2c5f318d7812696202705edda17c7352f66fba
CRs-Fixed: 2121005
2018-06-07 02:30:32 -07:00
nshrivas
ec912b999d Release 5.2.0.81O
Release 5.2.0.81O

Change-Id: Ie9c3298bd7f8587e5585ca205fb81e33fba4f9d2
CRs-Fixed: 774533
2018-06-06 23:49:09 -07:00
Nirav Shah
bb8e47c200 qcacld-3.0: Featurize packet log
Featurize packet log.

Change-Id: Id747d142d72d02759b20bcf3091fd769261b8f67
CRs-Fixed: 2245422
2018-06-06 23:49:08 -07:00
Nirav Shah
73713f7e80 qcacld-3.0: Featurize monitor mode
Featurize monitor mode code.

Change-Id: I42d2d6a92d9097676ab3f8ec4a86958b8c0bc096
CRs-Fixed: 2245419
2018-06-06 23:49:05 -07:00
Sandeep Puligilla
8e89d57e0e qcacld-3.0: Add spectral scan feature flag
Add spectral scan feature flag which can be
used to control the feature through build options.

Change-Id: Ide13e958cffff610626c891041307b40ac94c47d
CRs-Fixed: 2232167
2018-06-06 23:49:01 -07:00
nshrivas
7669c081c8 Release 5.2.0.81N
Release 5.2.0.81N

Change-Id: Icd3391a8da30863d31fa80a8f0e6930d27738d6d
CRs-Fixed: 774533
2018-06-06 22:12:24 -07:00
Tiger Yu
9973e36524 qcacld-3.0: Reset the soc before htc_stop when failure in cds_pre_enable
Reset the soc before htc_stop when failure in the cds_pre_enable to stop
the copy engine which might continue deliver the data to host after
cleaning up the destination ring buffers to avoid the poison overwritten.

Change-Id: I2ef111926af4a889f1ee005681d68eafba7e5564
CRs-Fixed: 2250860
2018-06-06 22:12:24 -07:00
Kiran Kumar Lokere
0927102d08 qcacld-3.0: Refactor code to pass large argument by reference
A large function call parameter is passed by value.
Refactor the code to send the large function call parameter by
reference.

Change-Id: I0a29ee9df797e245a4960160c66053df7b834be3
CRs-Fixed: 2232908
2018-06-06 22:12:20 -07:00
nshrivas
f51feb2f32 Release 5.2.0.81M
Release 5.2.0.81M

Change-Id: I8173e27b5b13c3d965018402a6da6f25dd70aa52
CRs-Fixed: 774533
2018-06-06 20:28:25 -07:00
Liangwei Dong
ad89c765fd qcacld-3.0: Fix pre cac work thread hung
wlan_hdd_sap_pre_cac_success run in the work thread
scheduled by sap_pre_cac_work.
But hdd_stop_adapter will call
cds_flush_work(&hdd_ctx->sap_pre_cac_work);
That means the work waits itself to finish.

The Fix is to add flag to hdd_stop_adapter
to identify the "stop" running in the work handler
and skip the "sync" cancel the work self.

Change-Id: I875c2f14ffd54272fc9ea0df1cecc6dd1171e310
CRs-Fixed: 2252085
2018-06-06 20:28:23 -07:00
Jeff Johnson
8abc59300e qcacld-3.0: Tighten the wma_tgt_cfg_cb API
Currently the function typedef wma_tgt_cfg_cb is defined with two void
pointer parameters. However the types of the two parameters are known
to both the sender and the receiver, so fully specify the types of
those parameters.

Change-Id: I7cf7178015084599061b123da7b5f1f453ec5353
CRs-Fixed: 2254954
2018-06-06 20:28:19 -07:00
Jeff Johnson
2d29212dc8 qcacld-3.0: Rename tHddHandle
Per the Linux coding style "mixed-case names are frowned upon" so
rename typedef tHddHandle to hdd_handle_t to align with the Linux
typedef naming convention.

Change-Id: I34849ed819b31564ca561a1718083793bf30a0a3
CRs-Fixed: 2254953
2018-06-06 20:28:16 -07:00
Jeff Johnson
b967d51f5f qcacld-3.0: Fix bad typecast in pe_mc_process_handler()
In pe_mc_process_handler() the mac_ctx is currently typecast to a
tHalHandle when calling pe_process_messages(). However
pe_process_messages() actually expects a tpAniSirGlobal, and the
typecast results in a build failure when strict type checking is
enabled. To fix the build failure remove the typecast.

Change-Id: Ie8a38845f0e2bf76205326a1b5fe7691a8f8de12
CRs-Fixed: 2254952
2018-06-06 20:28:12 -07:00
Jeff Johnson
796b9a708e qcacld-3.0: hdd: Fix incorrect hal_handle declarations
Turning on strict type checking flagged multiple of instances of
hal_handle being declared incorrectly, so fix them.

Change-Id: I8781c7e2839dcc3532b3aca066802db39f989e07
CRs-Fixed: 2254951
2018-06-06 20:28:08 -07:00
Jeff Johnson
bae59f9607 qcacld-3.0: Fix hdd_pre_enable_configure() layering violation
Currently hdd_pre_enable_configure() calls cfg_set_str() to update
WNI_CFG_STA_ID in the cfg database. Buf cfg_set_str() is an internal
MAC API which should not be called by HDD, and this code fails to
compile when strict parameter checking is enabled because HDD is
passing a tHalHandle to a function which expects a tpAniSirGlobal.
Update hdd_pre_enable_configure() to instead call sme_cfg_set_str().

Change-Id: Ic3f249f18319c3e54786938f76fe61b2af37f25f
CRs-Fixed: 2254950
2018-06-06 20:28:05 -07:00
Jeff Johnson
0a078b5a23 qcacld-3.0: Fix HDD WPA/RSN IE layering violation
Currently HDD is directly calling csr_roam_get_wpa_rsn_req_ie() and
csr_roam_get_wpa_rsn_rsp_ie(). That is a layering violation since HDD
should be calling SME APIs; CSR APIs are meant to be called by
SME. And SME already exposes two APIs which, in turn, call those CSR
APIs. However those SME APIs, sme_roam_get_security_req_ie() and
sme_roam_get_security_rsp_ie(), are defined to take an extra secType
parameter which is then unused. To clean up this mess modify the SME
APIs to have the same naming and parameters as the CSR APIs and update
HDD to call the SME APIs.

Change-Id: I0ba2f056e089818ab04a8d421e3d8c571e312831
CRs-Fixed: 2254949
2018-06-06 20:28:02 -07:00
Peng Xu
8e8b039c8d qcacld-3.0: Use extended feature flag to support DFS offload
Use upstream extended feature flag NL80211_EXT_FEATURE_DFS_OFFLOAD
for DFS offload support.

Change-Id: I26f4998c7760d8913d1311e459eb873685279681
CRs-fixed: 2233627
2018-06-06 20:27:59 -07:00
Jeff Johnson
330c0bf8ef qcacld-3.0: Fix sme_update_channel_list() API
Currently sme_update_channel_list() is defined to take a
tpAniSirGlobal mac_ctx. However SME APIs are supposed to hide the fact
that they operate on tpAniSirGlobal and instead should be taking a
tHalHandle. Furthermore a tHalHandle is what is currently being passed
by HDD.  Therefore update sme_update_channel_list() to take a
tHalHandle.

Change-Id: I2f424a6c11342470fd6885968d635109327be3f0
CRs-Fixed: 2254947
2018-06-06 20:27:56 -07:00
Jeff Johnson
d0a6b2c979 qcacld-3.0: Consistently use CDS logging APIs
The CDS module currently has a mixture of directly using QDF_TRACE
(with an assortment of module IDs) along with using its own CDS
logging APIs. Update the module to consistently use just the CDS
logging APIs.

Change-Id: I5581c960d2b3c973246b44bda3b5bbb740ac3bf3
CRs-Fixed: 2251991
2018-06-06 20:27:52 -07:00
Jeff Johnson
028033d7a0 qcacld-3.0: Add cds_warn() API
The set of cds trace APIs is missing the "warn" API, so add cds_warn().

Change-Id: I1d15f7e01667c5f8ec46c7a7c20d9d8ac4987f28
CRs-Fixed: 2251990
2018-06-06 20:27:48 -07:00
Jeff Johnson
13269963d7 qcacld-3.0: Rename pModuleContext & ppModuleContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename identifiers pModuleContext & ppModuleContext.

Change-Id: Ib0c37fa2ec295da24cfcdfbf903c6ba121dec04b
CRs-Fixed: 2251989
2018-06-06 20:27:45 -07:00
Jeff Johnson
835b760a1e qcacld-3.0: Rename pGpModContext & pModContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename identifiers pGpModContext & pModContext.

Change-Id: I077cd7b7b3415c14549f02bb166ec31e79712b7b
CRs-Fixed: 2251988
2018-06-06 20:27:42 -07:00
Jeff Johnson
b3be6a6a36 qcacld-3.0: Rename moduleID & moduleId
Per the Linux coding style "mixed-case names are frowned upon" so
rename identifiers moduleID & moduleId.

Change-Id: I1bda5cb9d0d57a5af072ed0eb61c7d8125dfd3cd
CRs-Fixed: 2251987
2018-06-06 20:27:39 -07:00
Jeff Johnson
2ccd815bf5 qcacld-3.0: Rename cds_context field wmaCompleteEvent
Per the Linux coding style "mixed-case names are frowned upon" so
rename field wmaCompleteEvent in struct cds_context.

Change-Id: I0b56daf9e387bbc96ddd2b0539ddefb16c82cca2
CRs-Fixed: 2250673
2018-06-06 20:27:36 -07:00
Jeff Johnson
a40e21c1d3 qcacld-3.0: Rename cds_context field pHIFContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename field pHIFContext in struct cds_context.

Change-Id: I023d61b0a26a6f4f35a46e5c04ab63b83182b846
CRs-Fixed: 2250672
2018-06-06 20:27:33 -07:00
Jeff Johnson
830f322c66 qcacld-3.0: Rename cds_context field pWMAContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename field pWMAContext in struct cds_context.

Change-Id: Ia8fa98366d57ab2bf81549570ef7b1766e579a00
CRs-Fixed: 2250671
2018-06-06 20:27:30 -07:00
Jeff Johnson
528c2cfc31 qcacld-3.0: Rename cds_context field pMACContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename field pMACContext in struct cds_context.

Change-Id: I50007d80d12276b682237d728435203e455a18c9
CRs-Fixed: 2250670
2018-06-06 20:27:27 -07:00
nshrivas
898ddcbc2b Release 5.2.0.81L
Release 5.2.0.81L

Change-Id: Ib4fd84a1d0919c378030fe3c54e5e37cfd6cedc9
CRs-Fixed: 774533
2018-06-06 18:56:22 -07:00
Dundi Raviteja
e1f0d3b5e3 qcacld-3.0: Add support to dynamicaly configure concurrent dwell time
Add new driver command to dynamically configure concurrent
active and passive dwell time parameters.

Change-Id: Ib758786349f8889600cab34609f5c7763fc36251
CRs-Fixed: 2230861
2018-06-06 18:56:21 -07:00
Amar Singhal
82b6a74853 qcacld-3.0: Remove incorrect check for station count
Remove incorrect check for WLAN_MAX_STA_COUNT. The callee
ol_txrx_get_vdev_by_local_id would do the correct check for
OL_TXRX_NUM_LOCAL_PEER_IDS.

Change-Id: I74f9996316cead165f40454c75145515e9c86a04
CRs-Fixed: 2247595
2018-06-06 18:56:18 -07:00
nshrivas
d78f25800b Release 5.2.0.81K
Release 5.2.0.81K

Change-Id: I1baf2b72f4b2585d88863a0f5a22892bccd7af54
CRs-Fixed: 774533
2018-06-06 07:39:28 -07:00
Kiran Kumar Lokere
4c75929fa7 qcacld-3.0: Fix duplicate assignment with wrong value
Remove the duplicate assignment with wrong value that
is never used

Change-Id: I6d599f5b4db457340fdf40d9c7637effb0948c57
CRs-Fixed: 2232901
2018-06-06 07:39:27 -07:00
nshrivas
9e96f69088 Release 5.2.0.81J
Release 5.2.0.81J

Change-Id: I92da9a5feff843481d6a55ed29ec05d4b8c3340d
CRs-Fixed: 774533
2018-06-06 05:49:20 -07:00
Manjunathappa Prakash
a0cbc92c6b qcacld-3.0: Add HDD flow pool map/unmap for policy manger
Add HDD flow pool map and unmap functions. These are registered
with the policy manager (via CDS) so that lithium_dp vdev flow pools are
created/deleted when vdev become active/not-active under the control of
the policy manager

Change-Id: I1ff6b3bafa78df68fbf9a221ac0d001bd5a06d8d
CRs-Fixed: 2240815
2018-06-06 05:49:20 -07:00
gaurank kathpalia
99d06c14e9 qcacld-3.0: Fill PMK info in pmk_cache in NON-FILS case
Currently the firmware supports FILS by default, and the
kernel and driver have dependencies on the kernel version
for FILS support. The PMK info i.e the PMK length and the
PMK itself is sent to the firmware as part of roam
scan offload params, and are filled from the PMK
received from the CFG layer via csr_roam_set_psk_pmk.
The PMK and its parameters are received via a vendor
command, and called via ops wlan_hdd_set_default_mgmt_key.
With the presence of FILS feature, the pmk is filled
via hdd_fill_pmksa_info(), which fills the PMK,PMK
length to the pmk_cache. It is called via ops
wlan_hdd_cfg80211_set_pmksa. But in the NON-FILS case,
the PMK, PMK length received from the CFG layer is NULL
and zero respectively, and hence the firmware which expects
a valid PMK and PMK length gets a PMK as NULL , and the
PMK length as zero, which will lead to deletion of the
pmk received earlier via vendor command, also a fresh 8-way
handshake from the HOST, rather than a 4-way handshake
from firmware if the PMK-ID for that particular AP(BSSID)
matches the PMK-ID in the AP.

Fix is to fill the params of PMK, PMK length in the NON-FILS
case too by copying the params received previously via the vendor
command, where the params are stored in the session itself.
Hence it will fulfill the requirement of the PMK, PMK len
from the firmware, and lead to a faster handshake process
while re-associating.

Change-Id: I4c91cac6bad400c8fa58b2a6ba2b282a3b7f1620
CRs-Fixed: 2243070
2018-06-06 05:49:17 -07:00
Himanshu Agarwal
331639871a qcacld-3.0: Start SAP on 80Mhz in STA+SAP when acs_policy enabled
When acs_policy is enabled and STA is already up on some 5Ghz channel,
SAP is coming up on the same 5Ghz channel as expected but in 20Mhz even
when bandwidth given by hostapd is 80Mhz.

Start SAP on same channel as STA but in 80Mhz instead of 20Mhz.

Change-Id: Ie5dc06844f867d32796706cdcc190d1cb1b1d2fe
CRs-Fixed: 2196229
2018-06-06 05:49:14 -07:00
Naveen Rawat
89e85d4f6a qcacld-3.0: Fix incomplete IE handling in dot11 unpack functions
If in dot11f_unpack functions, check for integer underflow fails,
the function returns failure but does not set the present field
of the IE. This present field of the structure is used to check
if IE is present. So even if the unpack failed the IE structure
is considered valid.

Change-Id: I8f572db43a869e48a151ea37dc5b9a2c1fe34eea
CRs-Fixed: 2246426
2018-06-06 05:49:11 -07:00
Alok Kumar
b8919e14c5 qcacld-3.0: Cleanup the unreachable code in htt_t2h_lp_msg_handler
Currently, the message type HTT_T2H_MSG_TYPE_RX_ADDBA and
HTT_T2H_MSG_TYPE_RX_DELBA is not supported as firmware is
no more sending this message to host.

Clean up the unreachable code for HTT_T2H_MSG_TYPE_RX_ADDBA
and HTT_T2H_MSG_TYPE_RX_DELBA message type.

Change-Id: I7a32fb53fec00e0507ef32d29494968188c98bfd
CRs-Fixed: 2226328
2018-06-06 05:49:08 -07:00
nshrivas
841f849c7b Release 5.2.0.81I
Release 5.2.0.81I

Change-Id: I7d409d6d6f23b433b25541ca85edacf6d50155a6
CRs-Fixed: 774533
2018-06-05 06:01:37 -07:00
Wen Gong
bd949fcea7 qcacld-3.0: Change compile config for extscan
Change compile config for extscan

Change-Id: I74f37ffb504f98d8f88f530520a35cabfddc3404
CRs-Fixed: 2246259
2018-06-05 06:01:36 -07:00
nshrivas
01256d7593 Release 5.2.0.81H
Release 5.2.0.81H

Change-Id: I54685f22c58d250888582cfc5aa2168b0e34cd2f
CRs-Fixed: 774533
2018-06-04 19:11:19 -07:00
Tushnim Bhattacharyya
929afa48db qcacld-3.0: Reduce log level to debug for scan & connect
Reduce the log level for some of the scan & connect related logs from
info to debug.

Change-Id: I19c41af47137cf1951834b31c47c73d6d5f4937e
CRs-Fixed: 2252968
2018-06-04 19:11:18 -07:00
nshrivas
0883906f01 Release 5.2.0.81G
Release 5.2.0.81G

Change-Id: I96ab06cad27d83143e26b972df665bd2bea3fb7d
CRs-Fixed: 774533
2018-06-04 15:03:49 -07:00
Ryan Hsu
b5783cfcb2 qcacld-3.0: clean up to avoid NULL pointer dereference IPA
Fix a few things in one shot.

- clean up some code to avoid potential NULL pointer dereference.
- add a helper function - wlan_ipa_free_tx_desc_list() to
  avoid duplication.
- rearrage wlan_ipa_teardown_sys_pipe() to allow others' reference

Change-Id: I9d6391a7f20ae427bf59f07958bd13f349e61d83
CRs-Fixed: 2233867
2018-06-04 15:03:48 -07:00
nshrivas
0342407471 Release 5.2.0.81F
Release 5.2.0.81F

Change-Id: Ibf26326c08a751e2849865602091e3441544566c
CRs-Fixed: 774533
2018-06-04 13:58:52 -07:00
Jeff Johnson
323a6f06aa qcacld-3.0: Rename cds_context field pHDDContext
Per the Linux coding style "mixed-case names are frowned upon" so
rename field pHDDContext in struct cds_context.

Change-Id: I483c5fa09127753770ec644527989902d842af0e
CRs-Fixed: 2250669
2018-06-04 13:58:51 -07:00