Commit Graph

10198 Commits

Author SHA1 Message Date
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
Naveen Rawat
a36e2ff1ee qcacld-3.0: Disable CP_STATS component
Disable CP_STATS component till, corresponding all changes are merged.

Change-Id: I1a4e62427db57a5bbbe8d195805137ee64853ee3
CRs-Fixed: 2236751
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