Commit Graph

9526 Commits

Author SHA1 Message Date
Abhinav Kumar
7494819d8f qcacld-3.0: Do not flush disconnect command from sme on receiving connect
If disconnect command is in SME pending queue, when connect command
is received, the disconnect command is flushed and as SME is
already in connected state the new connect command is handled as
reassoc req and as no preauth was done with this new AP, SME does not
call proper HDD callback to indicate conenct failure. Thus HDD remains
stuck in connecting state leading to scans rejection.

To fix this do not flush disconnect command from SME on receiving
connect cmd and thus clean up the SME before connect is processed.

Change-Id: Icefe8866a24b332688c64d8e69a11642fd7215d9
CRs-Fixed: 2238873
2018-05-16 08:35:55 -07:00
nshrivas
c69064917f Release 5.2.0.78J
Release 5.2.0.78J

Change-Id: I500fad94e18955db0883ceece3d6e6a05efaf51f
CRs-Fixed: 774533
2018-05-16 06:46:27 -07:00
Min Liu
31c601d2d6 qcacld-3.0: Reset FW peer count when HO failed
For LFR 3.0, when HO failed, peer deletion is handled by FW,
No WMI_PEER_DELETE_CMDID will be sent to FW.
Reset the peer counter when HO failure is reported.

Change-Id: I07cecf3166f40d2bd103a286e4556f95d7465bba
CRs-Fixed: 2240059
2018-05-16 06:46:25 -07:00
Arif Hussain
458ad46ea8 qcacld-3.0: Reduce log level in lim_detect_change_in_ap_capabilities()
To avoid excessive console logging reduce log level from warn
to debug in lim_detect_change_in_ap_capabilities function.

Change-Id: I72fdd2b8ac1ce647480ab1eb164fb65079da3784
CRs-Fixed: 2240699
2018-05-16 06:46:19 -07:00
Sravan Kumar Kairam
2be2792e2e qcacld-3.0: Fix possible OOB issue in ol_tx_desc_update_group_credit
Currently tx desc id is extracted from HTT message and it is used
without check. This may cause possible OOB array read. To address
this add check for valid tx desc id.

Change-Id: I121fc4d550aa587f00ec315e3a20dfb136f4d7af
CRs-Fixed: 2225461
2018-05-16 06:46:13 -07:00
nshrivas
8bc7fe7172 Release 5.2.0.78I
Release 5.2.0.78I

Change-Id: I5e826eba5acb47d59d17ccc5f2d561110abcdd39
CRs-Fixed: 774533
2018-05-16 03:57:12 -07:00
Visweswara Tanuku
02e40d282a qcacld-3.0: Do proper cleanup when management frame send failed
qcacld-2.0 to qcacld-3.0 propagation

When Management frame Tx fails, tx_frm_ota_comp_cb is not set NULL
during cleanup, because of which assert is observed since session
is not available

Set tx_frm_ota_comp_cb NULL when Management frame tx fails

Change-Id: I318a6d04cce06955f6751f6f3df746fec50b9434
CRs-Fixed: 2127855
2018-05-16 03:57:10 -07:00
nshrivas
e1c4b636dd Release 5.2.0.78H
Release 5.2.0.78H

Change-Id: I72e0d4ff6e9fb948c39ede1dd1a93edd085f6a66
CRs-Fixed: 774533
2018-05-16 02:07:40 -07:00
Vignesh Viswanathan
f0ef774994 qcacld-3.0: Remove unused scan_info struct in wma_txrx_node
Remove the unused member scan_info in wma_txrx_node structure.

Change-Id: Ice2c3209620ac7fd9874680b2d976ca363d22695
CRs-Fixed: 2239807
2018-05-16 02:07:38 -07:00
nshrivas
cf21ba8567 Release 5.2.0.78G
Release 5.2.0.78G

Change-Id: Ieb10d9be6dcfc190eb0382ee64a8f5dfe1cba321
CRs-Fixed: 774533
2018-05-15 20:56:36 -07:00
Arif Hussain
0627e2ff4e qcacld-3.0: Refactor lim_process_mlm_deauth_ind()
Add missing break and other minor indentation fix and cleanup.

Change-Id: Ic5c33300a686a0767c593ec19cdc0c4f5dcee17c
CRs-Fixed: 2232878
2018-05-15 20:56:34 -07:00
Visweswara Tanuku
006313a221 qcacld-3.0: Add boundary check for setMonChan command
qcacld-2.0 to qcacld-3.0 propagation

Add channel and bandwidth validation check for
setMonChan iwpriv command.

Change-Id: I1be22799a46e3ec30cfe384563ecb8a5404d9f6a
CRs-Fixed: 2139911
2018-05-15 20:56:27 -07:00
Abhishek Singh
0ac37445d5 qcacld-3.0: Call vdev resp and hold req queue cleanup from MC thread
Vdev resp and hold req queue cleanup is called in kernel thread context
and this may lead to race condition where it may free the wma's iface
structure while MC thread is using the iface.

In case FW down is received during interface delete, driver complete wait
events and thus the interface delete remove the adapter before del sta
self resp is received and thus del sta self resp uses adapter after its
freed.

To avoid this call the vdev resp and hold req queue cleanup from MC
thread. Also call del sta self resp only when driver unload is in
progress. For FW down case the resp is not required.

Change-Id: I711f83c54df29251de365a3137077b3b8d82b448
CRs-Fixed: 2234547
2018-05-15 20:56:20 -07:00
Arif Hussain
cb312923a2 qcacld-3.0: Fix buffer overwrite in lim_mlm_add_bss()
Fix buffer overwrite in lim_mlm_add_bss() by adding
validation check.

Change-Id: I67b8b63b6de33390ee5288fc6f6cef52f9203c1f
CRs-Fixed: 2233036
2018-05-15 20:56:11 -07:00
nshrivas
1c45990657 Release 5.2.0.78F
Release 5.2.0.78F

Change-Id: If7a697e043aaa46f25dc2143e2e39e36d99bdb81
CRs-Fixed: 774533
2018-05-15 19:05:35 -07:00
Rajeev Kumar Sirasanagandla
8413a48db3 qcacld-3.0: Avoid info leak in IOCTL CCXBEACONREQ
While processing IOCTL - CCXBEACONREQ, when number of
beacon request IEs is zero, respective handler drv_cmd_ccx_beacon_req()
is trying to log measurement token from un-initialized struct variable
ese beacon request, which results in kernel info disclosure.

To fix this, initialize stack variable ese beacon request and return
error in disconnected state when number of beacon request IEs is zero.

Change-Id: I4b0a8c673f9ca92e8699a157b24a100bb0cffa83
CRs-Fixed: 2225338
2018-05-15 19:05:32 -07:00
bings
0e03a98d21 qcacld-3.0: Stop and flush data when radar is found
Do not send data packets when radar is found

Change-Id: Icd7c042099cc4431cb836d0fcc3d10ad7db5982f
CRs-Fixed: 2237858
2018-05-15 19:05:23 -07:00
gaurank kathpalia
18b4936767 qcacld-3.0: Fix out of bound write in mcs_set
The driver fills the mcs set array in
hdd_update_tgt_ht_cap for all rf chains
and does not have a upper boundary check to
cfg->num_rf_chains, which could lead
to out of bound write a valid value
to a memory which not allocated to mcs set

Fix is to have a check to cfg->num_rf_chains

Change-Id: Ibeb5e783e2369ebee1bbf3fc724d06736c174c69
CRs-Fixed: 2221902
2018-05-15 19:05:15 -07:00
nshrivas
711ffa7d70 Release 5.2.0.78E
Release 5.2.0.78E

Change-Id: Ic4d80c2149d388ac04a2cd3b76c7281e7d87a007
CRs-Fixed: 774533
2018-05-15 15:37:51 -07:00
Tang Yingying
5a4ccf208e qcacld-3.0: Set RPS CPU mask when t-put is high
The default value of /sys/class/net/xx/queues/rx-x/rps_cpus is 0,
It means that the RX thread and soft IRQ will run on same core.
In 8996AU, the t-put will be impacted by the default value 0 both
in LTE and WLAN interface. Add support to set WLAN RPS CPU mask when
there is high t-put requirement of WLAN to improve the performance.

Change-Id: I10127a763b768a29b25041070f3ea7b3f6769289
CRs-Fixed: 2195721
2018-05-15 15:37:49 -07:00
Hanumanth Reddy Pothula
3048c93707 qcacld-3.0: Avoid buffer overread while processing set pno IOCTL
While processing set pno IOCTL, input argument 'extra' is printed
without making sure it's NULL terminated.

Log input string 'extra' after making sure it's NULL terminated.

Change-Id: I4158103a85c0828dad240cf00b34da94e6a8cc62
CRs-Fixed: 2228601
2018-05-15 15:37:42 -07:00
nshrivas
3ee63bc05c Release 5.2.0.78D
Release 5.2.0.78D

Change-Id: I32f27a58010af402eb5bbca520fdb1acc75d572b
CRs-Fixed: 774533
2018-05-15 13:54:21 -07:00
Min Liu
fad99adc80 qcacld-3.0: Correct AssocId range when stop BSS
In __lim_handle_sme_stop_bss_request, it will try to disassociate
STAs of which AssocId is from 1 to pMac->lim.gLimAssocStaLimit - 1.
However, valid range of AssocId should be from 1 to
pMac->lim.gLimAssocStaLimit. This will cause STA and peer leakage
when there is an STA using AssocID equal to pMac->lim.gLimAssocStaLimit.
Update the uppper limit to pMac->lim.gLimAssocStaLimit accordingly.

Change-Id: Ifec315c0ae69f8b93ce8b87601cca7cc13c6bc88
CRs-Fixed: 2230757
2018-05-15 13:54:17 -07:00
Manjunathappa Prakash
7ed5ef5d16 qcacld-3.0: Get txrx_pdev context from global cds_context
__hdd_tx_timeout passes cdp_soc context dump_flow_pool_info callback
function. Lithium_dp interchangeably use cdp_soc and dp_soc as cdp_soc is
first element of dp_soc.
Same is not valid for iHelium datapath, do not expect caller to pass
the txrx_pdev context, instead get it from global cds_context.

Change-Id: I64932fefd1294275608258df49544135d3a0562c
CRs-Fixed: 2240099
2018-05-15 13:54:12 -07:00
Arif Hussain
0e24680997 qcacld-3.0: Add support to send A-MSDU aggregation type to firmware
Add support to send A-MSDU aggregation type to firmware.

Change-Id: Id97efa6b7ff658b11462f9d6b6c8e79107e5f128
CRs-Fixed: 2234350
2018-05-15 13:54:08 -07:00
nshrivas
ff843ff442 Release 5.2.0.78C
Release 5.2.0.78C

Change-Id: Idce8a8149f9792f1aff1f1b66a00e382f1b4094c
CRs-Fixed: 774533
2018-05-15 10:05:40 -07:00
Wen Gong
3f00338bf7 qcacld-3.0: Change WLAN_FEATURE_HDD_MEMDUMP_ENABLE
Change WLAN_FEATURE_HDD_MEMDUMP_ENABLE to WLAN_FEATURE_MEMDUMP_ENABLE

Change-Id: Id4ef8de4dc7b566f3b29b9e045c1530c873a426c
CRs-Fixed: 2241236
2018-05-15 10:05:40 -07:00
nshrivas
f189a752f9 Release 5.2.0.78B
Release 5.2.0.78B

Change-Id: I482d14f0b8bb0097c2d4f55bd2e6c00d9b6fb3fb
CRs-Fixed: 774533
2018-05-15 08:48:30 -07:00
Visweswara Tanuku
d0c726b4b9 qcacld-3.0: Block SoftAP channel switch in response to ECSA frame
qcacld-2.0 to qcacld-3.0 propagation

SoftAP is changing channel in response to ECSA frame from STA
Do not let SoftAP switch channel in response to ECSA.

Change-Id: Ie9ddbf10c13f62205fdd60c512a560b35c6610ba
CRs-Fixed: 2121117
2018-05-15 08:48:29 -07:00
Vignesh Viswanathan
5ce817eb54 qcacld-3.0: Optimize SAP beacon handling for protection
Currently SAP beacon callback loops through PE sessions to check
if the beacon's channel matches any active SAP channel and then
invokes sch_beacon_process_for_ap API. In sch_beacon_process_for_ap
we again loop through all the PE sessions to identify the session
where the SAP is active.

Optimize this by looping only once through all PE sessions in
lim_handle_sap_beacon and invoke sch_beacon_process_for_ap with
the SAP session's session_id.

Change-Id: Ia74e17845de161508b6c8efff6aca82cf4d9c961
CRs-Fixed: 2226237
2018-05-15 08:48:25 -07:00
nshrivas
b1482540a0 Release 5.2.0.78A
Release 5.2.0.78A

Change-Id: Ib5354f1295f8fb2366c8bea7587d88b68b393a91
CRs-Fixed: 774533
2018-05-15 05:56:49 -07:00
Vignesh Viswanathan
75af0a6c04 qcacld-3.0: Fix return status in wlan_hdd_reassoc_bssid_hint
Currently wlan_hdd_reassoc_bssid_hint returns true if prev_bssid is
present in the connect request even if the hdd_reassoc fails leading
to connection not happening if the supplicant sends a prev_bssid
and bssid_hint in the connect request and if the current state is
not connected.

Fix return status in __wlan_hdd_cfg80211_connect to return 0 only
if hdd_reassoc is success else proceed with disconnect and connect

Change-Id: I513495797f2538fc8887ff0a9ce04e13035e0549
CRs-Fixed: 2238104
2018-05-15 05:56:48 -07:00
nshrivas
77b1c865ac Release 5.2.0.78
Release 5.2.0.78

Change-Id: Iee5be9e9d11c10f7caf86c1add6a28cadc8561fe
CRs-Fixed: 774533
2018-05-15 04:33:47 -07:00
Vignesh Viswanathan
a2f5ce580a qcacld-3.0: Validate channel list from ioctl before sending to fw
Currently the channel list received from the SETROAMSCANCHANNELS
driver command is passed directly to the FW without checking if it
contains any invalid channels leading the firmware to assert if the
list contains unsupported channels.

Validate the channel list received from the ioctl with the base
channel list and send to firmware only if all the channels in
the list are valid

Change-Id: Ia502eecb97e34de854a75a6af7ffb8ccc02a7e52
CRs-Fixed: 2231242
2018-05-15 04:33:46 -07:00
nshrivas
3edad82e68 Release 5.2.0.77Z
Release 5.2.0.77Z

Change-Id: I18086c49d1c70a2101162807d5fd917f943af7f7
CRs-Fixed: 774533
2018-05-15 03:21:30 -07:00
Ashish Kumar Dhanotiya
3d0c71379c qcacld-3.0: Resolve compilation error for FEATURE_WLAN_ESE
If FEATURE_WLAN_ESE is disable, there is a compilation error.

Remove the definition of hdd_wmm_inactivity_timer_cb and
hdd_wmm_disable_inactivity_timer if FEATURE_WLAN_ESE is disabled
as these apis are not getting used anywhere.

Change-Id: I2c236f63429bdc738be9ccb06f9671b694fd9a5d
CRs-Fixed: 2238180
2018-05-15 03:21:30 -07:00
Yeshwanth Sriram Guntuka
f71b48e505 qcacld-3.0: Possible buffer overflow in wma_stats_ext_event_handler
Check for stats ext info data len does not take TLV header
size into account which could lead to buffer overflow
when copying data where TLV header size is taken into
account.

Fix is to subtract TLV header size and stats_ext_info
size from max allowed size when validating stats ext
info data length.

Change-Id: I34e35a0aab396af3d93a0f61e0ab6a2da09f22ab
CRs-Fixed: 2227263
2018-05-15 03:21:26 -07:00
Rakesh Pillai
33942c4344 qcacld-3.0: Fix Use-After-Free in ol_txrx_pdev_detach
The use TAILQ_FOREACH for freeing the fw_stats list during
pdev detach causes a use-after-free condition, which can lead
to unexpected behavior during the driver load or unload.

Fix the possible Use-after-free condition in pdev detach, by
using TAILQ_FOREACH_SAFE instead of TAILQ_FOREACH for freeing
the fw_stats list.

CRs-Fixed: 2214520
Change-Id: I5dfcc5e3f0d2e77a5f6226eca06bc6ab1af4e643
2018-05-15 03:21:22 -07:00
nshrivas
389e2bb771 Release 5.2.0.77Y
Release 5.2.0.77Y

Change-Id: I2bd3b7a7486420de9ce843a7ac82c155d9ff0f30
CRs-Fixed: 774533
2018-05-15 00:36:13 -07:00
Naveen Rawat
374d798de2 qcacld-3.0: Split __wlan_hdd_cfg80211_get_station for sta/sap
Refactor function __wlan_hdd_cfg80211_get_station for sta and sap
case.

Change-Id: Ic71333750657745058c5f37665ea0bb7b7331988
CRs-Fixed: 2223583
2018-05-15 00:36:12 -07:00
Venkata Sharath Chandra Manchala
c004fa0614 qcacld-3.0: Enable Support for dbs stats
Add an extra parameter for txrx_stats to print
stats based on provided mac_id

Change-Id: I613ef657571f8ce6222434067117ac313fc98d60
CRs-Fixed: 2237472
2018-05-15 00:36:08 -07:00
nshrivas
2fc8b6eb81 Release 5.2.0.77X
Release 5.2.0.77X

Change-Id: I0330ac9a29c6e4bd3d3c2c2f046df73516e79df7
CRs-Fixed: 774533
2018-05-14 23:15:35 -07:00
gaurank kathpalia
d84b0052d3 qcacld-3.0: Allocate extra 100 bytes to add missing IE info
In the API sir_validate_and_rectify_ies, the driver rectifies
the RSN IE, if the AP hasnt filled the RSN capabilities in the
beacon/probe response, but has filled the length of IE as extra
2 bytes meant for the RSN capabilities.The driver tries to repair
these kind of frames and fills the last 2 bytes of RSN IE with
default RSN capabilities, to prevent the failure of unpacking
the IEs in unpack-core. But, the driver may write these default
RSN capabilities into some other allocated memory, because the
allocated memory is only the frame length, which would result
in OOB write.

Fix is to allocate some reserve bytes in the frame
for these type of issues.

Change-Id: I46c7301f3e40f84d2c68ec9ba38702baa6926306
CRs-Fixed: 2232542
2018-05-14 23:15:34 -07:00
nshrivas
ba7f8acd85 Release 5.2.0.77W
Release 5.2.0.77W

Change-Id: I51a8f029cdc4215b267e212375636a7ce0a01c89
CRs-Fixed: 774533
2018-05-14 21:54:40 -07:00
Yu Wang
157d147841 qcacld-3.0: add implementation of getting congestion stats
Add changes to support get congestion stats from
within cp_stats component.

Change-Id: I359332a18f11e56a29f15c08f687fd2d08c22695
CRs-Fixed: 2222782
2018-05-14 21:54:39 -07:00
Tushnim Bhattacharyya
eb622b0f2f qcacld-3.0: Ignore the csa event when roaming is in progress
Ignore the csa event for the station if roaming is in progress on
the same.

Change-Id: Ibb698589484a6a9df021a00986b89bebcc003b27
CRs-Fixed: 2237556
2018-05-14 21:54:34 -07:00
Jeff Johnson
9c749db62c qcacld-3.0: Prevent overread of SSID in hdd_fill_pmksa_info()
Currently when transferring SSID information from the nl80211 TLV to
the internal data structure hdd_fill_pmksa_info() always copies
SIR_MAC_MAX_SSID_LENGTH bytes which can overread the buffer. In order
to prevent overread only copy as many bytes as the TLV contains.

Note that the destination buffer passed to hdd_fill_pmksa_info() is
always zero-filled so no additional zeroing of bytes is required.

Change-Id: I1f6773b70e9e728d6b1ce93ca26417348e96844c
CRs-Fixed: 2237462
2018-05-14 21:54:29 -07:00
nshrivas
606c86caac Release 5.2.0.77V
Release 5.2.0.77V

Change-Id: Ieec825e6ab6c95613851f74ce592791c1adba18c
CRs-Fixed: 774533
2018-05-14 20:15:46 -07:00
Vignesh Viswanathan
03f5f0eb56 qcacld-3.0: Free body if session is NULL in lim_process_switch_channel_rsp
In lim_process_switch_channel_rsp, if pe_find_session_by_session_id
returns NULL, memory of body pointer is not freed leading to memory
leak.

Free memory allocated for body pointer if session entry is NULL in
lim_process_switch_channel_rsp.

Change-Id: I939aceb3ed993fd1488b72db9df526c1724f0ac5
CRs-Fixed: 2236980
2018-05-14 20:15:46 -07:00
Vignesh Viswanathan
4e65e8eab6 qcacld-3.0: Acquire SME lock before csr_roam_offload_scan from SME
In a scenario where the below two HDD commands are executed at the
same time from different threads
1. Disconnect which does an RSO Stop and free the pCurRoamProfile
2. Set Blacklist BSSID which does and RSO Update and accessed
the pCurRoamProfile
pCurRoamProfile is accessed in the function csr_roam_offload_scan
after is freed from the other context.
The Disconnect command from HDD is protected under the global SME lock,
however, the set blacklist BSSID path is not protected under SME lock.
There are multiple instances where csr_roam_offload_scan is called
without the SME lock which could lead to similar issues.

Acquire SME lock before csr_roam_offload_scan from callers in
SME/HDD which can be from other threads.

Change-Id: I9666bab0001b56ec01dcf1df0becb36344fb6f9a
CRs-Fixed: 2226423
2018-05-14 20:15:42 -07:00
nshrivas
9afe1ef8b9 Release 5.2.0.77U
Release 5.2.0.77U

Change-Id: Ibc59c1cdb94d27d4c809ee218e8c302740ed3056
CRs-Fixed: 774533
2018-05-14 19:07:59 -07:00
Vignesh Viswanathan
ea432dda8a qcacld-3.0: Add sanity check for min buf_len in wma_form_rx_packet
In function wma_form_rx_packet, mpdu_data_len is calculated as
(buf_len - mpdu_hdr_len). If the value of buf_len is less than
mpdu_hdr_len, then a integer underflow would occur while calculating
mpdu_data_len.

Add sanity check to return invalid if buf_len is less than mpdu_hdr_len.

Change-Id: I4522eadb65f6cd8b210ba071a91e53008eec042c
CRs-Fixed: 2230318
2018-05-14 19:07:58 -07:00
nshrivas
d99e51eda6 Release 5.2.0.77T
Release 5.2.0.77T

Change-Id: I1f6e1a4801e549ecdf7ea1b7056862abeec2d26e
CRs-Fixed: 774533
2018-05-14 17:59:48 -07:00
Dustin Brown
b1032c2cc2 qcacld-3.0: Add management frame wake stats
Track and print WLAN wake stats for management frames received.

Change-Id: I803a4cebbeb4434e25e00dc3826b186dbb17f413
CRs-Fixed: 2234398
2018-05-14 17:59:44 -07:00
nshrivas
0fe4d03414 Release 5.2.0.77S
Release 5.2.0.77S

Change-Id: I8a32f0ee55de211a3650ac205b4dcaab4d67f5e2
CRs-Fixed: 774533
2018-05-14 16:50:34 -07:00
Visweswara Tanuku
2e2ac0338d qcacld-3.0: Use LDPC flag from Vendor IE for VHT20 case
qcacld-2.0 to qcacld-3.0 propagation

Update LDPC flag from Vendor IE instead of VHT capabilities
for VHT20 case.

Change-Id: I7bb916353586529fb78f1caeda68687663e44af2
CRs-Fixed: 2091292
2018-05-14 16:50:33 -07:00
nshrivas
ad8cfa1185 Release 5.2.0.77R
Release 5.2.0.77R

Change-Id: I21df33f557cadf9abeddc1e8975bb02a3aaa0749
CRs-Fixed: 774533
2018-05-14 13:58:42 -07:00
Arif Hussain
5fa1378112 qcacld-3.0: Add missing status check in __lim_process_sme_disassoc_cnf()
Fix typo in checking mlm status by adding missing
eLIM_MLM_WT_DEL_BSS_RSP_STATE state check in
__lim_process_sme_disassoc_cnf() function.

Change-Id: Id2acde09023ba117e1d938035db9e9a0d7b303b3
CRs-Fixed: 2232883
2018-05-14 13:58:41 -07:00
hqu
a8d079d93d qcacld-3.0: Always set WMI_ROAM_SCAN_MODE_NONE with RSO_STOP cmd for LFR2.0
For LFR2.0 roaming policy, firmware will indicate roam event with
WMI_ROAM_REASON_SUITABLE_AP reason even ROAM_SCAN_OFFLOAD_STOP cmd
set with WMI_ROAM_SCAN_MODE_ROAMOFFLOAD, it doesn't obey LFR2.0
roaming policy design. Root cause is firmware only disable roam
scan with ROAM_SCAN_OFFLOAD_STOP cmd which must set scan mode with
WMI_ROAM_SCAN_MODE_NONE.

Fix is to always set scan mode with WMI_ROAM_SCAN_MODE_NONE for
LFR2.0 when host send ROAM_SCAN_OFFLOAD_STOP cmd.

Change-Id: Id5e8325f2767023daacd3dbd4104ce768de3857d
CRs-Fixed: 2228315
2018-05-14 13:58:37 -07:00
nshrivas
29188cc2b1 Release 5.2.0.77Q
Release 5.2.0.77Q

Change-Id: I26e7b409aa2867f0d63b9a471153ac4e60b9dfa2
CRs-Fixed: 774533
2018-05-14 12:50:43 -07:00
hqu
8f0dd69415 qcacld-3.0: Use session_id param for csr_roam_offload_scan
When Pre-Auth is failed, it will go to ROAM_SCAN_OFFLOAD_START
or ROAM_SCAN_OFFLOAD_RESTART process, it always uses zero as
session_id param for csr_roam_offload_scan, it's wrong, session_id
should be variable value.

Fix is to use variable session_id param for csr_roam_offload_scan.

Change-Id: Iaf5f234dc73001440aaf02d7931c7891903f9148
CRs-Fixed: 2239812
2018-05-14 12:50:43 -07:00
Arif Hussain
186d7a008c qcacld-3.0: Fix buffer overwrite in csr_roam_diag_joined_new_bss()
Fix possible buffer overwrite in csr_roam_diag_joined_new_bss function.

Change-Id: Icf4a39e0a2a291f1c084353985aa7952e3c8e136
CRs-Fixed: 2233033
2018-05-14 12:50:39 -07:00
nshrivas
249cab7ba0 Release 5.2.0.77P
Release 5.2.0.77P

Change-Id: I08197cfba945ef89b4e99fe3192754c9f273f82e
CRs-Fixed: 774533
2018-05-14 11:39:09 -07:00
Rakshith Suresh Patkar
83871f7a7d qcacld-3.0: Define DPT_DEBUGFS_PERMS outside ifdef
DPT_DEBUGFS_PERMS macro has been defined inside
ifdef QCA_SUPPORT_TXRX_LOCAL_PEER_ID. Since this can cause problems
when the above config is not set, defining it outside.

Change-Id: Ibf02f692ddaf0b5de17d647cce27a6e093f7b7df
CRs-Fixed: 2238106
2018-05-14 11:39:08 -07:00
nshrivas
bc70f0da98 Release 5.2.0.77O
Release 5.2.0.77O

Change-Id: If8ffedce617fa264b5ddc64c1e5ad85d47dbf19a
CRs-Fixed: 774533
2018-05-14 10:26:22 -07:00
gaurank kathpalia
c63859d9f0 qcacld-3.0: Send RSN caps in RSO command
Association request initiated by the host contains
the RSN capabilities which contains both the flags
of PMF, i.e PMF required and PMF capable. The DUT
may connect to a non PMF AP or only a PMF capable AP,
if the DUT is PMK capable and not PMF required,
but connection to a non PMF AP isnt allowed
if the DUT is configured as PMF required.
In the Association request, the DUT advertises its
RSN capabilities, and accrding to them, the connection
(PMF/non PMF) happens. But these capabilities arent
sent to the firmware, so while roaming, the DUT may
connect to a non-PMF AP, as in the re-assoc request
the DUT would still advertise PMF-REQUIRED as false,
which would be violation of protocol.

Fix is to send these RSN capabilities to the
firmware as part of roam scan offload params,
to have firmware save the configuration, and
send the RE-assoc request with PMF required as
true, if the DUT supports PMF required.

Change-Id: Iff58f7ba3b2fee7a834bd625225bbb3d62f33557
CRs-Fixed: 2234977
2018-05-14 10:26:21 -07:00
Will Huang
9913277e97 qcacld-3.0: Clear mac_ctx->sap.sapCtxList for SAP if SSR happen
While SSR happen, hdd_reset_all_adapters will not clear
mac_ctx->sap.sapCtxList[sapctx->sessionId].pSapContext, and later the
sapctx will assign new sessionId after SSR restart SAP and update to
mac_ctx->sap.sapCtxList. So sapctx/old sessionId still can be
referenced by like wlan_sap_is_pre_cac_active and call pre cac cleanup
on unexpected port.

When SAP restart and set global sapCtxList in sap_set_session_param(),
find matched sapctx and clear it before assigning updated value.

Change-Id: Id02733cb22267ac0c1899d8caf9ac47c65e24a88
CRs-Fixed: 2232398
2018-05-14 10:26:18 -07:00
Yeshwanth Sriram Guntuka
0e6f44655a qcacld-3.0: Decrement vdev ref count in wma_state_info_dump
Vdev ref count is incremented in wma_state_info_dump
and not decremented before return. This results in
vdev not deleted physically as part of wlan0 hdd_stop.
On hdd_open, a new vdev is created for wlan0 with same
mac addr as the previous wlan0 vdev. In scan, API to
get vdev by mac addr will return NULL since the first
wlan0 vdev is not physically deleted and not removed from
vdev list.

Fix is to decrement vdev ref count in wma_state_info_dump.

Change-Id: I67c90a721643f5bb7c6e212846f6d398055a6672
CRs-Fixed: 2233997
2018-05-14 10:26:15 -07:00
nshrivas
c56e6fcd3d Release 5.2.0.77N
Release 5.2.0.77N

Change-Id: Ieb3d7fdbde6cd8d2d8607a625322d3fbd5ed75d2
CRs-Fixed: 774533
2018-05-12 08:45:29 -07:00
Vignesh Viswanathan
053efa32c8 qcacld-3.0: Add check for min buffer length in find_ie_defn
In find_ie_defn function, if the current IE is an Ext IE with EID=255,
the third byte of the IE is accessed to get the extn_eid. However, if
the actual buffer length is less than 3, then an OOB read would occur
while trying to access extn_eid.

Add check to access pbuf + 2 for extn_eid only if nbuf is greater than 2.

Change-Id: Id9708176affe35a85eb21a07901ae8ed62b78b9e
CRs-Fixed: 2237141
2018-05-12 08:45:28 -07:00
Sandeep Puligilla
39cec0833b qcacld-3.0: Add Null pointer check for packet buffer
Add Null pointer check for packet buffer before dereference
it in lim_send_addba_response_frame() API.

Change-Id: I46c637b7534fe200ec586b07e34d9a4baee5ac7e
CRs-Fixed: 2232740
2018-05-12 08:45:25 -07:00
nshrivas
6522ea5601 Release 5.2.0.77M
Release 5.2.0.77M

Change-Id: I81a66e5a50fa30ae2be1d7bc93a3e6bfa223dcc1
CRs-Fixed: 774533
2018-05-12 07:45:35 -07:00
Bala Venkatesh
7cf5b66a92 qcacld-3.0: Fix NULL pointer access in sme_set_wlm_latency_level
'wma' pointer is initialized using the return value of
cds_get_context;This function can return NULL value.

Check for NULL pointer before dereferencing the 'wma'.

Change-Id: I529a34fba91f19bdd6c62d14e97cfabb476cdf7f
CRs-Fixed: 2239647
2018-05-12 07:45:34 -07:00
nshrivas
29aa4943a3 Release 5.2.0.77L
Release 5.2.0.77L

Change-Id: Iea55329d6287b11ecd8b1dcf3aa641558f85c1ee
CRs-Fixed: 774533
2018-05-12 06:28:06 -07:00
Vignesh Viswanathan
18eb2b2aff qcacld-3.0: Post Probe request frames to SCAN queue instead of PE queue
Currently in pe_handle_mgmt_frame, all management frames are posted
into the PE message queue. The beacon and probe response frames are
filtered before posting into the PE message queue, however the PE
message queue can still be flooded with probe request frames.

Post probe request frames via SCAN queue with the appropriate
callback function.

Change-Id: Ie29ad9602d3389af467b8f893624b86265a44421
CRs-Fixed: 2238190
2018-05-12 06:28:05 -07:00
nshrivas
7456328697 Release 5.2.0.77K
Release 5.2.0.77K

Change-Id: I50b37e35736219af4e609e17c52f869ef8fe9ad7
CRs-Fixed: 774533
2018-05-12 04:31:14 -07:00
Srinivas Girigowda
eb6ecf3f96 qcacld-3.0: Consistently use policy_mgr_dual_mac_config
Remove duplicate structs wmi_dual_mac_config and sir_dual_mac_config
and use policy_mgr_dual_mac_config.

Change-Id: I6da6539f519ec46ee274ba3f3ae042e5fd9c25d2
CRs-Fixed: 2190993
2018-05-12 04:31:13 -07:00
Arif Hussain
3b7ed833f2 qcacld-3.0: Fix tCsrRoamConnectedProfile initialization
Use correct size to mem zero tCsrRoamConnectedProfile
In csr_roam_save_ndi_connected_info() function.

Change-Id: I54d2bef0bd9202971dff47f9b25d43ff40258630
CRs-Fixed: 2232891
2018-05-12 04:31:08 -07:00
Dustin Brown
4cd46f86c3 qcacld-3.0: Add break for QCSAP_SET_FW_PROFILE_HIST_INTVL
The IOCTL handler mapping code for QCSAP_SET_FW_PROFILE_HIST_INTVL
mistakenly falls through to the next switch case. Add a break to prevent
executing two IOCTL callbacks for QCSAP_SET_FW_PROFILE_HIST_INTVL.

Change-Id: I6b0a17b87c22d1d2be3697456608e8ebe704afed
CRs-Fixed: 2232911
2018-05-12 04:31:03 -07:00
Jeff Johnson
33142e6fb6 qcacld-3.0: Fix typo "doesnt"
Replace typo "doesnt" with correct spelling "doesn't".

Change-Id: Ic3063f9fe74e10f656e00e86c8f38ccf1132f22d
CRs-Fixed: 2238297
2018-05-12 04:30:58 -07:00
Jeff Johnson
9a27ffa62e qcacld-3.0: Fix typo "continous"
Replace typo "continous" with correct spelling "continuous".

Change-Id: I6159508bf43b3504d8a44f2088c3b98aef449460
CRs-Fixed: 2238297
2018-05-12 04:30:53 -07:00
Jeff Johnson
55ceaf0187 qcacld-3.0: Fix typo "avaiable"
Replace typo "avaiable" with correct spelling "available".

Change-Id: I6f62d402bf73a1b8c8b3abebdf14a6d9a02d96d2
CRs-Fixed: 2238297
2018-05-12 04:30:48 -07:00
Jeff Johnson
6c6d27c461 qcacld-3.0: Fix typo "assocation"
Replace typo "assocation" with correct spelling "association".

Change-Id: I01445b034954ae80b55bfa3eb20b9754d56cd7de
CRs-Fixed: 2238297
2018-05-12 04:30:43 -07:00
Jeff Johnson
79e36881d4 qcacld-3.0: Fix typo "initalize"
Replace typo "initalize" with correct spelling "initialize".

Change-Id: Iba47549908aa42e7579cc88f13318c71eab96158
CRs-Fixed: 2238297
2018-05-12 04:30:38 -07:00
Jeff Johnson
45ecc2494a qcacld-3.0: Fix typo "Succesfully"
Replace typo "Succesfully" with correct spelling "Successfully".

Change-Id: I29dd54581aecbc4c1b0025f6c205576cb7961fd2
CRs-Fixed: 2238297
2018-05-12 04:30:33 -07:00
Jeff Johnson
37a41264d1 qcacld-3.0: Fix typo "funtion"
Replace typo "funtion" with correct spelling "function".

Change-Id: I05db828dd5830d4b95467ed5494f319113de9252
CRs-Fixed: 2238297
2018-05-12 04:30:29 -07:00
Jeff Johnson
b83ee48722 qcacld-3.0: Fix typo "successfull"
Replace typo "successfull" with correct spelling "successful".

Change-Id: I22f4e705e13eebe5bb6ce1ec01888af6b8a394fa
CRs-Fixed: 2238297
2018-05-12 04:30:24 -07:00
Jeff Johnson
810596ad7a qcacld-3.0: Fix typo "paramter"
Replace typo "paramter" with correct spelling "parameter".

Change-Id: I3f6f090a4f5348f64241e08c87b9bcd342696e10
CRs-Fixed: 2238297
2018-05-12 04:30:19 -07:00
Jeff Johnson
0f04e20f06 qcacld-3.0: Fix typo "occurence"
Replace typo "occurence" with correct spelling "occurrence".

Change-Id: I80f61cae1d993bf7373dbe47a48099b8dedbfdfb
CRs-Fixed: 2238297
2018-05-12 04:30:15 -07:00
Jeff Johnson
2e3ccd249e qcacld-3.0: Fix typo "seperator"
Replace typo "seperator" with correct spelling "separator".

Change-Id: I66dbe4a79aac3e8e97ba8ffd5c09a63e6e0f684d
CRs-Fixed: 2238297
2018-05-12 04:30:11 -07:00
Jeff Johnson
f2cf659cc2 qcacld-3.0: Fix typo "diable"
Replace typo "diable" with correct spelling "disable".

Change-Id: Ifb0d0086c1356a92fd868a22c2f1e1693f66066a
CRs-Fixed: 2238297
2018-05-12 04:30:06 -07:00
Jeff Johnson
4ceed38fbf qcacld-3.0: Fix typo "recieve"
Replace typo "recieve" with correct spelling "receive".

Change-Id: I16de4aedcd0f401da8b11fa0ea4989ad1e73bf57
CRs-Fixed: 2238297
2018-05-12 04:30:02 -07:00
Jeff Johnson
77f89bb156 qcacld-3.0: Fix typo "Suported"
Replace typo "Suported" with correct spelling "Supported".

Change-Id: I45047e0deebc95f9467cb67a4998b5ca85fca7f4
CRs-Fixed: 2238297
2018-05-12 04:29:58 -07:00
Jeff Johnson
6201829f3a qcacld-3.0: Fix typo "retrive"
Replace typo "retrive" with correct spelling "retrieve".

Change-Id: I09ae4ea41031a0a8108e1b60494eedb8751c5b3e
CRs-Fixed: 2238297
2018-05-12 04:29:54 -07:00
Jeff Johnson
06095fbeac qcacld-3.0: Fix typo "adress"
Replace typo "adress" with correct spelling "address".

Change-Id: I9bd286f412f3912b60caa75df630432f5c14c8ac
CRs-Fixed: 2238297
2018-05-12 04:29:49 -07:00
Jeff Johnson
626f4d93d3 qcacld-3.0: Fix typo "pacakge"
Replace typo "pacakge" with correct spelling "package".

Change-Id: Id5446269c492c146dbd18d09842c603a9839c248
CRs-Fixed: 2238297
2018-05-12 04:29:44 -07:00
Jeff Johnson
0f7440e180 qcacld-3.0: Fix typo "comand"
Replace typo "comand" with correct spelling "command".

Change-Id: Ib2c4ac1cd6415ee4a2239a952239d5f15790c7f0
CRs-Fixed: 2238297
2018-05-12 04:29:39 -07:00
Jeff Johnson
78073fa604 qcacld-3.0: Fix typo "hander"
Replace typo "hander" with correct spelling "handler".

Change-Id: I562b02085c38d308b37a5b42787a18bd834f0876
CRs-Fixed: 2238297
2018-05-12 04:29:36 -07:00
Jeff Johnson
c00ae5bd4d qcacld-3.0: Fix typo "aquired"
Replace typo "aquired" with correct spelling "acquired".

Change-Id: I67700be588fb55e033eef98d9de0e54a4b19a57c
CRs-Fixed: 2238297
2018-05-12 04:29:32 -07:00
Jeff Johnson
e444c108f4 qcacld-3.0: Fix typo "connnection"
Replace typo "connnection" with correct spelling "connection".

Change-Id: I080bf56159601de7a51aa0e8798564f00653b1c2
CRs-Fixed: 2238297
2018-05-12 04:29:28 -07:00
Jeff Johnson
d6a8af963d qcacld-3.0: Fix typo "existance"
Replace typo "existance" with correct spelling "existence".

Change-Id: I58be5bc661c42b61e7e161d7641e6c39edc0bf7c
CRs-Fixed: 2238297
2018-05-12 04:29:25 -07:00
Jeff Johnson
276ae04a5c qcacld-3.0: Fix typo "Compatability"
Replace typo "Compatability" with correct spelling "Compatibility".

Change-Id: I0f7b36def9a9701c640266d41ee78e6836270ea2
CRs-Fixed: 2238297
2018-05-12 04:29:21 -07:00
Jeff Johnson
453e6c0c58 qcacld-3.0: Fix typo "platfrom"
Replace typo "platfrom" with correct spelling "platform".

Change-Id: If155514d72d70ec326985b1ddff066f2fa3367c2
CRs-Fixed: 2238297
2018-05-12 04:29:17 -07:00
Jeff Johnson
a6cab553e2 qcacld-3.0: Fix typo "addreses"
Replace typo "addreses" with correct spelling "addresses".

Change-Id: Ib630c87d966eed104aec8669de636863a5fa555e
CRs-Fixed: 2238297
2018-05-12 04:29:12 -07:00
Jeff Johnson
11d7c9db98 qcacld-3.0: Fix typo "occured"
Replace typo "occured" with correct spelling "occurred".

Change-Id: I4d64bee7c9c929b4e7fce0c17d98136cff737fc4
CRs-Fixed: 2238297
2018-05-12 04:29:09 -07:00
Jeff Johnson
fe8e9497e9 qcacld-3.0: Fix typo "lenght"
Replace typo "lenght" with correct spelling "length".

Change-Id: I227fe599d88c68982dd102f71c0bad30cd5d93cf
CRs-Fixed: 2238297
2018-05-12 04:29:06 -07:00
Jeff Johnson
5e19a943c0 qcacld-3.0: Fix typo "intialized"
Replace typo "intialized" with correct spelling "initialized".

Change-Id: Ia9dccc1aee513a5846ea6f0308ede89fdee220de
CRs-Fixed: 2238297
2018-05-12 04:29:02 -07:00
Jeff Johnson
38c1c7df49 qcacld-3.0: Fix typo "fuction"
Replace typo "fuction" with correct spelling "function".

Change-Id: Ie34a95eddeaa4f8410dea87fb226e16d2ab96a6a
CRs-Fixed: 2238297
2018-05-12 04:28:59 -07:00
Jeff Johnson
60ed45a086 qcacld-3.0: Fix typo "paramters"
Replace typo "paramters" with correct spelling "parameters".

Change-Id: I13d41a0092666bc89743b9beb03e0253e6b613fc
CRs-Fixed: 2238297
2018-05-12 04:28:56 -07:00
Jeff Johnson
fa7d9601ef qcacld-3.0: Fix typo "seperate"
Replace typo "seperate" with correct spelling "separate".

Change-Id: Ic2e69d5a15366c0c2fe57d2f378cac0e11228f8e
CRs-Fixed: 2238297
2018-05-12 04:28:53 -07:00
Jeff Johnson
dd2f1fc72e qcacld-3.0: Fix typo "adapater"
Replace typo "adapater" with correct spelling "adapter".

Change-Id: Ifde6c8e45d6e7e5d644982273928b84b067b0792
CRs-Fixed: 2238297
2018-05-12 04:28:49 -07:00
Jeff Johnson
9020f0c390 qcacld-3.0: Fix typo "mangement"
Replace typo "mangement" with the correct spelling "management".

Change-Id: Ie9c993096ec9bc774a59caee0f3730b7be2b1372
CRs-Fixed: 2238297
2018-05-12 04:28:46 -07:00
nshrivas
164093fd46 Release 5.2.0.77J
Release 5.2.0.77J

Change-Id: I04499273530a8ef1bd7d70b95cb60ee5cea72326
CRs-Fixed: 774533
2018-05-12 01:25:40 -07:00
Dustin Brown
237baeebc1 qcacld-3.0: Return success in wlan_hdd_cfg80211_register_frames
Currently wlan_hdd_cfg80211_register_frames falls through to error
handling at the end of the success path. Return success instead.

Change-Id: I28eda918d3d5858cc42ef3958abe918b9ed788e9
CRs-Fixed: 2240003
2018-05-12 01:25:39 -07:00
Alok Kumar
19707a8b2f qcacld-3.0: Fix null pointer dereference in htt_t2h_lp_msg_handler
Apparently netbufs_ring is initialized only when reordering is not fully
offloaded. When a message of type HTT_T2H_MSG_TYPE_RX_OFFLOAD_DELIVER_IND
is sent, the driver does not check if reordering is offloaded.

Add a check, if reordering is offloaded, when a message of type
HTT_T2H_MSG_TYPE_RX_OFFLOAD_DELIVER_IND is sent.

Change-Id: I303b52182d97aa8185c23ccd99c37a97fb75a3d2
CRs-Fixed: 2213216
2018-05-12 01:25:35 -07:00
nshrivas
569a6e10f9 Release 5.2.0.77I
Release 5.2.0.77I

Change-Id: I79e7df034560521f325cafb7df4ae0d0df163d01
CRs-Fixed: 774533
2018-05-11 23:56:56 -07:00
gaurank kathpalia
f29064edac qcacld-3.0: Remove cds_pkt_free in assoc request api
In the API lim_send_assoc_req_mgmt_frame, the host
allocates memory for the assoc request packet
taking all inputs of payload and the mac header
size etc, and in case the mem allocation fails
it clears away the memory allocated to the packet
with cds packet free, which was not even allocated

Fix is to remove the packet free in case of memory not
allocated

Change-Id: I3fb75b1947dfe039605c42aa19c2d0bacc7bf55d
CRs-Fixed: 2216741
2018-05-11 23:56:55 -07:00
Himanshu Agarwal
5597208ded qcacld-3.0: Stop opportunistic timer while starting new SAP
If DBS opportunistic timer is still running while starting new SAP on
some DFS channel when STA is already present on some 2.4Ghz channel,
wrong hw mode will be set when timer expires as concurrency will only
be updated when VDEV_UP happens which will happen after at least 60
seconds in case of DFS channel. So, while starting SAP, hw mode was set
to DBS mode but on DBS opportunistic timer expiration, as VDEV_UP doesn't
happen yet, concurrency has not been updated till now causing hw mode to
reset to SINGLE_MAC resulting in DFS MCC which is not allowed.

Stop DBS opportunistic timer if running while starting new SAP to avoid
hw mode reset.

Change-Id: I9cef0ab5f6208e1822aff4a68c442d61a3f8a20e
CRs-Fixed: 2222386
2018-05-11 23:56:51 -07:00
nshrivas
ebde99fe87 Release 5.2.0.77H
Release 5.2.0.77H

Change-Id: I1cd5bee4907c75509d55e38612573357005ae203
CRs-Fixed: 774533
2018-05-11 22:40:02 -07:00
Sourav Mohapatra
cf632579b1 qcacld-3.0: Use new API for fetching wmi_handle
Use get_wmi_unified_hdl_from_psoc instead of GET_WMI_HDL_FROM_PSOC due
to incompatible return types.

Solve renaming dependencies with common side changes.

Change-Id: Ie84641327d64876877c7d26b63d632c79770a88c
CRs-Fixed: 2203055
2018-05-11 22:40:02 -07:00
Ryan Hsu
0e878fa952 qcacld-3.0: sanity check the cds_cfg before accessing
cds_get_ini_config() might return NULL for cds_cfg, add sanity check
before accessing it.

Change-Id: I0b9c13a75fb33931d0a098a69572b6cae2ac8621
CRs-fixed: 2232370
2018-05-11 22:39:59 -07:00
nshrivas
1c5582ed1e Release 5.2.0.77G
Release 5.2.0.77G

Change-Id: I7d458eae6a676dc0271b250392a4216d452f6eff
CRs-Fixed: 774533
2018-05-11 21:12:32 -07:00
Pragaspathi Thilagaraj
06219bfc33 qcacld-3.0: Fix integer truncation in convert_wsc_opaque
In the function convert_wsc_opaque, driver does copy of the
new parameters present in the additional IEs of the upstream
assoc request frame. While copy of the IE length pOld->length to
curAddIELen, possible integer truncation could occur, as the
curAddIELen is of the type uint8_t whereas pOld->length is of
type uint16_t.

Change the data type of curAddIELen to uint16_t. Make changes in
convert_p2p_opaque and convert_wfd_opaque as well.

Change-Id: Ic26660fca4a02a265bfc9553b066c7ee42f1d1f4
CRs-Fixed: 2231770
2018-05-11 21:12:31 -07:00
Ryan Hsu
da74332d4b qcacld-3.0: rearrange to avoid use-after-free of the skb
The skb buffer is freed after the ealier sanity and then pass along
to connectivity stats tracking. Rearragne the stats tracking into the
scope of the skb sanity to assure the skb poitner is valid before
accessing it and set to NULL after free to make sure it is cleared.

Change-Id: I08106bced48fa8f23955fd261c679a5362ddd7a6
CRs-fixed: 2232362
2018-05-11 21:12:28 -07:00
nshrivas
a4bda4fdd8 Release 5.2.0.77F
Release 5.2.0.77F

Change-Id: Ib0e644bdb10e49d906dd15f4a35c1754d9072846
CRs-Fixed: 774533
2018-05-11 16:17:59 -07:00
Arif Hussain
fe3de0de42 qcacld-3.0: Refactor lim_is_pkt_candidate_for_drop()
refactor lim_is_pkt_candidate_for_drop function to
include logic IBSS mode.

Change-Id: I3446e8f4d373e8f88d56d010a48a70cecf4b3062
CRs-Fixed: 2232890
2018-05-11 16:17:58 -07:00
Kiran Kumar Lokere
015f77fbbb qcacld-3.0: Set AMSDU size when AMPDU is disabled
Send unit test command to set AMSDU size to FW when
AMPDU is disabled

Change-Id: I6695a5527d89fbe131036ffa4f7a4c476994dea7
CRs-Fixed: 2221912
2018-05-11 16:17:52 -07:00
nshrivas
d15b6c2883 Release 5.2.0.77E
Release 5.2.0.77E

Change-Id: Ib4cad9087caa33fd55916d8ff4f3c30f223566e3
CRs-Fixed: 774533
2018-05-11 13:22:49 -07:00
Rajeev Kumar
3505ae54e0 qcacld-3.0: Clean up wlan wake lock during module exit
WLAN wake lock is created during module init but if probe
did not come from platform driver because of Q6 root/user
pd not coming up then during driver unload WLAN wake lock
is not destroyed which is leading to kernel panic because
WLAN driver is unloaded without cleaning up the wake up
source. Add fix to make sure to do hdd_deinit, pld_deinit
dispatcher_deinit and wlan wake up source deinit even if
hdd context is null because if probe did not happen from
platfrom driver then hdd_ctx will be null.

Change-Id: I213bded171b1c69da3332e84ebb0f7cbd940ef44
CRs-Fixed: 2240186
2018-05-10 18:44:45 -07:00
nshrivas
cbe80f4367 Release 5.2.0.77D
Release 5.2.0.77D

Change-Id: I80b39d94dc954422368e2446bbf9212273039ca8
CRs-Fixed: 774533
2018-05-09 22:53:39 -07:00
Sourav Mohapatra
1046049f6c qcacld-3.0: Initialize variable to prevent potential information leak
In the function drv_cmd_set_mc_rate, the variable targetRate, used to
store the value parsed from the command from user space, is not
initialized. The variable is assigned value inside a kernel API
kstrtouint that converts the string to an unsigned int. In a certain
case if the kernel API fails, it returns an error code without assigning
any value to the passed parameter. In this scenario, the variable
targetRate, still uninitialized is passed on to function
wlan_hdd_set_mc_rate where it is logged using hdd_debug. As the flow
goes on, it is then again logged using WMA_LOGE(). This might lead to
potential information leak.

Initialize the variable to zero to prevent the mentioned scenario.

Change-Id: Ideec0b1930e994f19ae8a669cd2963db4016eae1
CRs-Fixed: 2226172
2018-05-09 22:53:39 -07:00
Sourav Mohapatra
debfc5a964 qcacld-3.0: Check buff len alloc in __iw_set_packet_filter_params
In __iw_set_packet_filter_params(), a user controlled length value,
priv_data.length, is used to allocated a buffer. This buffer is then
cast to a struct pointer of struct pkt_filter_cfg type without ensuring
the buffer is large enough to hold the struct. This can lead to a buffer
overread if the user supplied size is smaller than the actual size of the
struct.

Add a sanity check on priv_data.length to ensure that the size is large
enough to hold the struct.

Change-Id: I227856484d4bd7a9b0a16a42e26febbc799f80b5
CRs-Fixed: 2228725
2018-05-09 22:53:36 -07:00
nshrivas
351a989b06 Release 5.2.0.77C
Release 5.2.0.77C

Change-Id: Ic6b5eb94a55d380b42b7be963508f06d7d82c50d
CRs-Fixed: 774533
2018-05-09 20:22:51 -07:00
Himanshu Agarwal
1230ee0ddd qcacld-3.0: Enable fw_crash_timeout
Presently, fw_crash_timeout is disabled as a result of which if
timeout happens for any VDEV related WMI command and device goes
in bad state, no assert or recovery is getting triggered. Due to
this, device crashes at some later point of time at some random
location making debugging difficult.

Enable fw_crash_timeout and trigger recovery if recovery is enabled
otherwise assert.

Change-Id: I9e9e51cba8086bd181be28884c490f0bd77663a8
CRs-Fixed: 2229101
2018-05-09 20:22:51 -07:00
nshrivas
39b22c8810 Release 5.2.0.77B
Release 5.2.0.77B

Change-Id: Ieaec9f0a601ceded100a7e2326224d809453b43b
CRs-Fixed: 774533
2018-05-09 17:36:16 -07:00
Jeff Johnson
5e492b4cb8 qcacld-3.0: Fix typo "deafult"
Replace typo "deafult" with the correct spelling "default"

Change-Id: Ieee2917cf1a094468249424dd6558acdefd237a3
CRs-Fixed: 2237730
2018-05-09 17:36:16 -07:00
Vignesh Viswanathan
69a76a9f4e qcacld-3.0: Add sanity check variable_data len in update_fils_data
In function update_fils_data, fils_indication->num_variable_data
is the actual length of the data present in the array variable_data.
While accessing variable_data array to copy cache identifier, HESSID
and realm identifiers, the length of the array is not checked and
could lead to OOB access.

Add check to validate remaining data length in variable_data array
before accessing it to copy various fields.

Change-Id: Ifc1f5d55964bcd7fdcc2676ea9c2afede0fe6803
CRs-Fixed: 2231767
2018-05-09 17:36:13 -07:00
nshrivas
e5d8787b0a Release 5.2.0.77A
Release 5.2.0.77A

Change-Id: I339818db2580cffee8848072249a98bea6adf269
CRs-Fixed: 774533
2018-05-09 16:31:24 -07:00
Jeff Johnson
9421434405 qcacld-3.0: Remove obsolete P2P macros
As a result of P2P componentization a variety of P2P-related macros
are no longer used, so remove them.

Change-Id: I693c4f11575968ce0aae9f3ecac9e008b0dbf5b9
CRs-Fixed: 2237726
2018-05-09 16:31:24 -07:00
Jeff Johnson
118a4a05af qcacld-3.0: Fix typo "capabilites"
Replace typo "capabilites" with correct spelling "capabilities".

Change-Id: I1c84c401fd732227d63a159bea7f7f3cefacf153
CRs-Fixed: 2237725
2018-05-09 16:31:19 -07:00
Jeff Johnson
5ead5ab10f qcacld-3.0: Fix typos "sucess" and "sucessful"
Replace typos "sucess" and "sucessful" with correct spellings
"success" and "successful"

Change-Id: I30746cbab4533da9b052261fa9bb87214188138b
CRs-Fixed: 2237724
2018-05-09 16:31:15 -07:00
Jeff Johnson
ff4b683dee qcacld-3.0: Fix typo "comming"
Replace typo "comming" with correct spelling "coming"

Change-Id: I9e6927cbbca82280edc459c445c2831dd8d79ce9
CRs-Fixed: 2237727
2018-05-09 16:31:11 -07:00
nshrivas
723a4c1566 Release 5.2.0.77
Release 5.2.0.77

Change-Id: Ie3125bfe6e9634ae3c1b7a6bd9df599de7c530e2
CRs-Fixed: 774533
2018-05-09 15:19:59 -07:00
Jeff Johnson
48a281a9d6 qcacld-3.0: Fix typo "accross"
Replace typo "accross" with correct spelling "across"

Change-Id: Id3a895e5dada1ff352a5ca52a80accd2c1615a71
CRs-Fixed: 2237728
2018-05-09 15:19:58 -07:00
Jeff Johnson
2cc31fdbad qcacld-3.0: Fix typo "choosen"
Replace typo "choosen" with correct spelling "chosen"

Change-Id: I58fc894783093f3d68f3b576906695a9ce201adf
CRs-Fixed: 2237731
2018-05-09 15:19:55 -07:00
Jeff Johnson
389e16bd34 qcacld-3.0: Rename fConnected
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename fConnected to align with the Coding
Style.

Change-Id: I5987e3c31aed44448a1f1843d8931daa7dfeb0fe
CRs-Fixed: 2237723
2018-05-09 15:19:51 -07:00
Jeff Johnson
e4c11db22a qcacld-3.0: Fix camelCase in tsap_Config_t
Rename typedef tsap_Config_t and the underlying struct sap_Config to
align with the Linux coding standard.

Change-Id: I6e8f8b5ab9555c7781f1acf12a0475902866300c
CRs-Fixed: 2237721
2018-05-09 15:19:47 -07:00
Jeff Johnson
acad838608 qcacld-3.0: Remove obsolete SAP ioctl structs
The following structs are obsolete so remove them:
- struct sQcSapreq_wpaie
- struct sQcSapreq_wscie

Change-Id: Ie9fdba59cf31e9a2c5e468183c1328aee439709a
CRs-Fixed: 2237720
2018-05-09 15:19:43 -07:00
nshrivas
edf7269a88 Release 5.2.0.76Z
Release 5.2.0.76Z

Change-Id: I64cc682422ab715985698bde3e3c2bda87a7843e
CRs-Fixed: 774533
2018-05-09 08:39:20 -07:00
Visweswara Tanuku
e6b0da58ec qcacld-3.0: RSN IE Update in case of BSS already started
qcacld-2.0 to qcacld-3.0 propagation

Beacon does not show RSN IE after disabling/enabling SAP, hence
stations does not connect back while trying to associate in WPA.

While re-enable SAP from the hostapd_cli, the start_bss is called
twice, first from wps_init which does not populate RSNIE and secondly,
through bss_setup which has RSNIE but getting ignored as the BSS is
already started.

Added the RSN IE in case of BSS already started

Change-Id: I2a67156e66e255e7c007a5925cd81b859009114e
CRs-Fixed: 2144429
2018-05-09 08:39:19 -07:00
nshrivas
b7dac3c947 Release 5.2.0.76Y
Release 5.2.0.76Y

Change-Id: Ib149fff9605831bafae0db4d0741f6db44b1c638
CRs-Fixed: 774533
2018-05-09 06:19:18 -07:00
Abhinav Kumar
ac12c76ea3 qcacld-3.0: Add comment between cases in switch statement
Add /* fallthrough */ comment in __lim_process_sme_deauth_req
as per linux checkpatch script while processing deauth req for
limSmeState 'eLIM_SME_LINK_EST_STATE'.

Change-Id: I38e0520aaec96e2ba35c916b39e79724c453632f
CRs-Fixed: 2233183
2018-05-09 06:19:17 -07:00
nshrivas
8c1cf5cca5 Release 5.2.0.76X
Release 5.2.0.76X

Change-Id: If694408cff7d63f4591718988ea9d0b5f316ca2d
CRs-Fixed: 774533
2018-05-09 01:44:33 -07:00
Vignesh Viswanathan
ad47f0a2a8 qcacld-3.0: Modify callers of ObjMgr APIs to include pdev_id
wlan_objmgr_get_vdev_by_macaddr_from_psoc and wlan_objmgr_get_peer
API's definitions have been changed to include pdev_id as an
argument.

Modify the callers of these APIs to include pdev_id as argument.

Change-Id: I3d0de6a0bc1dfefbe1b3cad51ec23f703baaf3ad
CRs-Fixed: 2210728
2018-05-09 01:44:33 -07:00
nshrivas
3f553c4267 Release 5.2.0.76W
Release 5.2.0.76W

Change-Id: I2584123117390b95729d26c3726ad370114c82e7
CRs-Fixed: 774533
2018-05-08 21:33:22 -07:00
Rajeev Kumar Sirasanagandla
e5582aa7ef qcacld-3.0: Avoid NULL pointer exception in (re)assoc event
In hdd_send_association_event() and hdd_send_re_assoc_event(), there is
no check of pBssDesc against NULL which can lead to NULL pointer exception.
Circumvent this issue by adding NULL check.

Change-Id: Ic3a0142b4ea3f058e8d3993fb491d418ddb8f70d
CRs-Fixed: 2232721
2018-05-08 21:33:21 -07:00
nshrivas
1c887e18aa Release 5.2.0.76V
Release 5.2.0.76V

Change-Id: Iced9a47bae8a40ab20a49ec299fab08e11261a2d
CRs-Fixed: 774533
2018-05-08 13:47:27 -07:00
Manjunathappa Prakash
bfd1276375 qcacld-3.0: Disable TCP delack if GRO is enabled
Takecare to disable TCP delack internally if GRO is enabled.
This is required as enabling both will have adverse effect with
smaller window size and noisy scenario.

Change-Id: If91236620d87287c9b71901e9d8e3d176eebc648
CRs-Fixed: 2172652
2018-05-08 13:47:26 -07:00
Lin Bai
362e52b391 qcacld-3.0: Fix regression of peer map adjustment
Change I8e1b62cd9586f5b2be7acb863a106d2486be1b35 used unassigned
member dp_handle of wlan_objmgr_psoc, that causing failure on DP.

Assign dp_handle properly to avoid it.

CRs-Fixed: 2237072
Change-Id: If230b8a24f5ac9d26ac27f89779c7669cdee5455
2018-05-08 13:47:22 -07:00
Abhinav Kumar
19f593962f qcacld-3.0: Add comment between cases in switch statement
Add /* fallthrough */ comment in sme_qos_add_ts_failure_fnp
as per linux checkpatch script in case of reason
SME_QOS_REASON_REQ_SUCCESS of flow request.

Change-Id: I6ea942e53cd6f0828dbe55cfdd77ecf75cf1cdbb
CRs-Fixed: 2233176
2018-05-08 13:47:19 -07:00
nshrivas
18f519f0b1 Release 5.2.0.76U
Release 5.2.0.76U

Change-Id: I2b7fc981c173b24331bb15c5c9abd22b913d3999
CRs-Fixed: 774533
2018-05-06 23:12:33 -07:00
Will Huang
67ce1e332b qcacld-3.0: Refine PMO wow to support legacy chip
wma_is_service_enabled can't get valid service bitmap if call in
hdd_update_pmo_config, use psoc_ctx->caps.unified_wow instead to check
pattern id per vdev and legacy d0 wow capability.

Change-Id: If7bf316f482c49253fc4b95b94e172727b27ffd1
CRs-Fixed: 2225847
2018-05-06 23:12:33 -07:00
Wen Gong
aa6d55d9e7 qcacld-3.0: Add hdd memory dump feature flag
Add config flag to enable / disable hdd memory dump feature

Change-Id: Id2994f72b595096459e65ef4da5381d6eb3b476b
CRs-Fixed: 2231695
2018-05-06 23:12:29 -07:00
nshrivas
612bc1c5df Release 5.2.0.76T
Release 5.2.0.76T

Change-Id: I1626db6340d43b455327635568b362bd022f2384
CRs-Fixed: 774533
2018-05-06 22:06:22 -07:00
Frank Liu
064ebd4a01 qcacld-3.0: Check sap restart after updated active session
When do re-association, there is obsolete data exists in policy manager
until hdd_association_completion_handler updates the active session.
If check sap restart before this, will access the wrong data.

Change-Id: Ie62f86a5d523e70b6bb81b500bd358b63ae90ea8
CRs-Fixed: 2231675
2018-05-06 22:06:21 -07:00
nshrivas
b1b4bba465 Release 5.2.0.76S
Release 5.2.0.76S

Change-Id: Ie777001ffba20fe1ea65e2365a060c797070e6b2
CRs-Fixed: 774533
2018-05-05 10:49:51 -07:00
nshrivas
d21f45f812 Release 5.2.0.76R
Release 5.2.0.76R

Change-Id: Iff9bbfb96391c263dd4a2416d39596416bfb5484
CRs-Fixed: 774533
2018-05-05 09:21:33 -07:00
Sravan Kumar Kairam
86fce778a0 qcacld-3.0: Update IPA uC TXRX stats to SAP adapter stats
Update the queried IPA uC TXRX stats to SAP adapter netdev stats.

Change-Id: I34ded780e6cbeba827c6d06b45720ee16c6be231
CRs-Fixed: 2234379
2018-05-05 09:21:32 -07:00
gaurank kathpalia
d2967a742c qcacld-3.0: Fix OOB write in vdev_mac_map
In the API wma_process_pdev_hw_mode_trans_ind
the host doesnt check the upper limit of
num_vdev_mac_entries received from the firmware,
and fills the same to the host structure
hw_mode_trans_ind, which may cause OOB write.
Fix is to check for the max vdev supported in the
same API and return if the condition is false.

Change-Id: I54a9e12f777b87b49057d6c97c06ab71b9ad1d77
CRs-Fixed: 2221965
2018-05-05 09:21:29 -07:00
nshrivas
28f46b45d6 Release 5.2.0.76Q
Release 5.2.0.76Q

Change-Id: Ia511881ca7e874022840b980f49b0ed635c818e2
CRs-Fixed: 774533
2018-05-05 08:22:56 -07:00
Yun Park
e019632b14 qcacld-3.0: Fix KASAN slab-out-of-bounds in ipa3_release_wdi_mapping
To avoid out-of-bounds access of mem_map_table from htt_rx_hash_deinit
, allocate mem_map_table size the same as maximum number of hash
entries, which is RX_NUM_HASH_BUCKETS * RX_ENTRIES_SIZE.

Change-Id: If25f97b47350196ceb2e8c60e7d5430a1484a01d
CRs-Fixed: 2214158
2018-05-05 08:22:55 -07:00
nshrivas
cb20b1a504 Release 5.2.0.76P
Release 5.2.0.76P

Change-Id: I9a63c1551441687197b5460f3fbecb909a414fc7
CRs-Fixed: 774533
2018-05-05 03:06:17 -07:00
Mahesh Kumar Kalikot Veetil
7fc48292f7 qcacld-3.0: Set proper arch dependency for NAPI
NAPI APIs in HDD are platform specific. So make these API's
conditionally compiled.

Change-Id: Id87c11da13f096d4f9ff735bbd98dcea23d52310
CRs-Fixed: 2235978
2018-05-05 03:06:16 -07:00
nshrivas
9c612d68a7 Release 5.2.0.76O
Release 5.2.0.76O

Change-Id: Ib04c9127aab58de95791b4b635bf137de3cc20ac
CRs-Fixed: 774533
2018-05-04 21:46:42 -07:00
Tushnim Bhattacharyya
89710e3e80 qcacld-3.0: Use WMI_HOST_WLAN_PHY_MODE instead of WLAN_PHY_MODE
Use the enumaration defined in common instead of the legacy one in
cld.

Change-Id: I0ad7659b8d03ae5a14b15ca464395ea3e2571286
CRs-Fixed: 2216803
2018-05-04 21:46:42 -07:00
Rajeev Kumar
3251405396 qcacld-3.0: Initialize packet filter clear rule properly
Initialize packet filter clear rule on stack properly to avoid
using un-initialized member variables.

Change-Id: I03b129e7660ed761b03ac163fdb3e7eee58ec034
CRs-Fixed: 2119208
2018-05-04 21:46:39 -07:00
nshrivas
361216564a Release 5.2.0.76N
Release 5.2.0.76N

Change-Id: I2e1864957fbaf5b18a71b898bc2de6bb20c62f84
CRs-Fixed: 774533
2018-05-04 20:43:01 -07:00
Pragaspathi Thilagaraj
2628343597 qcacld-3.0: Fix possible buffer overread in wma_set_epno_network_list
In the function wma_set_epno_network_list,
req->networks[i].ssid.ssId is copied into the destination
params->networks[i].ssid.mac_ssid. But the ssid length is not
considered while copying and WMI_MAC_MAX_SSID_LENGTH is used as
the length for copying. This might result in possible buffer
overread if the ssid length is not WMI_MAC_MAX_SSID_LENGTH.
Similar issue is seen in wma_pno_start also.

Use pno->aNetworks[i].ssId.length as the size to mem copy the
ssid to the destination ssid buffer.

Change-Id: Id3f579da97e398663b7d583f5f46d4671eabeae3
CRs-Fixed: 2233682
2018-05-04 20:43:00 -07:00
Manjunathappa Prakash
fb5f25b24a qcacld-3.0: Add GRO support to NAPI+Rx_thread processing model
GRO aggregations are hanging out of NAPI instance and We cannot use the
hif NAPI instance in Rx thread as gro_list inside NAPI is flushed out
at the start and end of NAPI poll, this will corrupt the gro_list on
which rx_thread is working. Address this concern by creating dummy
NAPI instances mapping to each hif NAPI and not scheduling them.

Change-Id: I6e1de57a669c56206a7863e86c3840bd0a9eabc1
CRs-Fixed: 2128450
2018-05-04 20:42:58 -07:00
Sandeep Puligilla
af8b633fcb qcacld-3.0: Add validation check for Access category
Add validation check for access category in
sme_qos_find_matching_tspec_lfr3() API.

Change-Id: I93cf061aabf207ea826009d81f457dbb966e2167
CRs-Fixed: 2232750
2018-05-04 20:42:55 -07:00
nshrivas
eceabff2f8 Release 5.2.0.76M
Release 5.2.0.76M

Change-Id: I8959d38dd4cb0bd8318e57588444aaf84de25aee
CRs-Fixed: 774533
2018-05-04 07:30:51 -07:00
Ashish Kumar Dhanotiya
80b01b55e4 qcacld-3.0: Disable hdd_wmm_inactivity timer
Currently api hdd_wmm_free_context free the hdd_wmm context and
this api is getting invoked from several places without disabling
the inactivity timer.
Since the timer is not disabled, when hdd_wmm_inactivity_timer_cb
is invoked it tries to access the hdd_wmm context which is already
freed and the memory is reallocated to someone else resulting to
undefined behaviour.

To address this issue, disable hdd_wmm_inactivity timer before
calling  hdd_wmm_free_context function and add a check for
hdd_wmm context in hdd_wmm_inactivity_timer_cb, if hdd_wmm context
is NULL don't proceed further and return.

Change-Id: Ib085c70b3e5a57b5cd494bc2cd21edd0580c16c4
CRs-Fixed: 2233987
2018-05-04 07:30:50 -07:00
nshrivas
ebbdf592ed Release 5.2.0.76L
Release 5.2.0.76L

Change-Id: Ic34e2f1209093a1a418cc59748fba342e1fe3a2e
CRs-Fixed: 774533
2018-05-03 21:51:06 -07:00
Rajeev Kumar
9176ca4778 qcacld-3.0: Optimize console logging during cfg80211 suspend
During cfg80211 suspend there are couple of redundant log messages
which are logged on console. Change the log level to debug to avoid
logging them on console.

Change-Id: Id45cc261ec7c2c1397afa746216b090fc5d34d7a
CRs-Fixed: 2235798
2018-05-03 21:51:05 -07:00
nshrivas
f2cdc94422 Release 5.2.0.76K
Release 5.2.0.76K

Change-Id: If754f74d3b676917a1d91f93da4e37364b7fbd66
CRs-Fixed: 774533
2018-05-03 18:33:07 -07:00
Sandeep Puligilla
493fea2572 qcacld-3.0: Add pointer validation check lim_send_probe_req_mgmt_frame()
Add pointer validation check for variable 'additional_ie' in
lim_send_probe_req_mgmt_frame() API before derefernce it.

Change-Id: I83f24b0707b129445b3b6bcdb84a5572aa4f0ccd
CRs-Fixed: 2232743
2018-05-03 18:33:07 -07:00
Naveen Rawat
c3411bbdf8 qcacld-3.0: Fix null pointer dereference in SAP state fsm
Add a check against for NULL pointer before accessing roam_info
object pointer.

Change-Id: Id03a47761fa9624ddf76305f110f1f83bcb0a7cd
CRs-Fixed: 2232419
2018-05-03 18:33:03 -07:00
nshrivas
d37cd72d4a Release 5.2.0.76J
Release 5.2.0.76J

Change-Id: I2abf54b0d88356d6619eef689a3943fd7aa45a07
CRs-Fixed: 774533
2018-05-03 17:26:35 -07:00
Abhinav Kumar
78404a87f0 qcacld-3.0: Modify type of variable used to store FILS Wrapped Data
Currently lim_create_fils_auth_data calls lim_create_fils_wrapper_data
to calculate length of the created wrapped data and stores it in an
unsigned variable wrapped_data_len. But return type of
lim_create_fils_wrapper_data is int so it could return negative value.
Less-than-zero comparison present in lim_create_fils_auth_data of an
unsigned value is never true, as unsigned value can never be less than 0.
Results lim_create_fils_auth_data returns improper 'fils auth data' which
used to be send in auth req.

To make 'less-than-zero comparison' effective in lim_create_fils_auth_data
change type of wrapped_data_len from unsigned int to signed int.

Change-Id: I66d872b76b2039179e3f3dd0ccbb6c135174e354
CRs-Fixed: 2233113
2018-05-03 17:26:35 -07:00
nshrivas
a150045962 Release 5.2.0.76I
Release 5.2.0.76I

Change-Id: I26aaf83578b6b159e4ca0c151892014c46621db3
CRs-Fixed: 774533
2018-05-03 14:03:33 -07:00
Abhinav Kumar
875cf2d24f qcacld-3.0: Add comment between cases in switch statement
Add /* fallthrough */ comment in sme_qos_add_ts_success_fnp
as per linux checkpatch script in case of reason
SME_QOS_REASON_REQ_SUCCESS of flow request.

Change-Id: I6285ccdc74e5c19fb9bbb8a1b9e0dec5e54edc6e
CRs-Fixed: 2233179
2018-05-03 14:03:33 -07:00
nshrivas
11b7368569 Release 5.2.0.76H
Release 5.2.0.76H

Change-Id: Ia97b0d1fbde2c031e36c92eb2d789a0cdb39036e
CRs-Fixed: 774533
2018-05-03 12:54:54 -07:00
Abhinav Kumar
e24e498ac3 qcacld-3.0: Avoid possible heartbeat failure due to Hw-DTIM
In case of STA + SAP, when STA connect to a new AP, the SAP
initiate channel switch to the new channel of the STA. During
this transition period DUT will be in MCC scenario and thus
firmware changes the TBTT of SAP to get 50% channel time.

Due to this peer STA connected to DUT-SAP may miss all 5
beacons containing CSA info and when it comes out of hw-dtim
mode after 5 beacon misses the DUT SAP has already moved to
new channel and thus as SAP is not on the old channel the peer
STA will receive Heart beat failure.

To avoid this Heart beat failure on peer STA, increases the
default value of channel switch count (g_sap_chanswitch_beacon_cnt)
to 10 to increase the probability of receiving beacons with
CSA info.

Change-Id: I2e5182c299f2a100c9919ffc123aa6b1290324f9
CRs-Fixed: 2227704
2018-05-03 12:54:54 -07:00
nshrivas
d75203c74a Release 5.2.0.76G
Release 5.2.0.76G

Change-Id: I53ea004359107889a112c0eab95c30ccfe3311ab
CRs-Fixed: 774533
2018-05-03 11:46:19 -07:00
Yu Wang
c0b46f810d qcacld-3.0: add implementation of getting peer rssi
Add changes to support get peer rssi from within
cp_stats component.

Change-Id: I4c3d5168eeb6fa097d91eb2568e059817cab7d91
CRs-Fixed: 2222778
2018-05-03 11:46:19 -07:00
Naveen Rawat
5259c23657 qcacld-3.0: Fix NPD in function lim_create_fils_wrapper_data
Fix NPD in function lim_create_fils_wrapper_data, by moving the check
against NULL pointer before the access.

Change-Id: I00c6c4df0ff94ffdfe77a8a563b1747c29906b2f
CRs-Fixed: 2232734
2018-05-03 11:46:15 -07:00
nshrivas
a71e3a9779 Release 5.2.0.76F
Release 5.2.0.76F

Change-Id: I196879e1ddf49b80053d0db4cabf6f1d86c16371
CRs-Fixed: 774533
2018-05-03 10:42:42 -07:00
Ashish Kumar Dhanotiya
cc1d6fd6a8 qcacld-3.0: Change default value of ini "gEnableSecondaryRate"
Change the default value of ini "gEnableSecondaryRate" from
0x18 to 0x17.

Change-Id: Ieef3bf656971d809275e087be124390001b077fa
CRs-Fixed: 2234784
2018-05-03 10:42:42 -07:00
Zhang Qian
610a1a7a34 qcacld-3.0: Add pointer check in wma_is_ccmp_pn_replay_attack
cdp_get_pn_info() would output wild pointers and cause NULL
pointer reference in wma_is_ccmp_pn_replay_attack().
Add pointer check in wma_is_ccmp_pn_replay_attack().

CRs-Fixed: 2232554
Change-Id: Ic2e5487468aaced91d6567005bbe66a7c065f088
2018-05-03 10:42:38 -07:00
nshrivas
19adad1bac Release 5.2.0.76E
Release 5.2.0.76E

Change-Id: I9cc7acf14f01a183622ae8727474e9e36d52432b
CRs-Fixed: 774533
2018-05-03 08:04:57 -07:00