Commit Graph

9204 Commits

Author SHA1 Message Date
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
Rajeev Kumar
dcce809079 qcacld-3.0: Log reason code while flushing logging events
Log reason code while flushing logging events to precisely know
the reason of failure.

Change-Id: Ibe26563780f165e85490c54c2b4f83d959a3587f
CRs-Fixed: 2235138
2018-05-03 08:04:57 -07:00
nshrivas
6fed2fd619 Release 5.2.0.76D
Release 5.2.0.76D

Change-Id: Icc7cde9f95b751e4f8d9b313ac611991133ea28a
CRs-Fixed: 774533
2018-05-03 04:43:31 -07:00
Mohit Khanna
02281da645 qcacld-3.0: add DPTRACE Enhancements - Phase 2
Change data packets printing to one line
Add msdu-id to TX packets
Increase data packets size to include the complete IP packets
Indication/print when the throttling occurs

Change-Id: I4831c517b41f81003b8d28448a3093d911ac978c
CRs-Fixed: 2157768
2018-05-03 04:43:30 -07:00
nshrivas
284f866673 Release 5.2.0.76C
Release 5.2.0.76C

Change-Id: Ia30935ba3276a8f445b2dd69145417b3426a8db7
CRs-Fixed: 774533
2018-05-03 02:38:40 -07:00
nshrivas
9a7f678c54 Release 5.2.0.76B
Release 5.2.0.76B

Change-Id: I1aa1020bbae966af064caa08c87aa82d2f0266dd
CRs-Fixed: 774533
2018-05-02 21:46:41 -07:00
Jiachao Wu
51c9a14dbf qcacld-3.0: Return value check error in getlinkspeed
The return value check logic is wrong in __iw_get_softap_linkspeed.
Which cause get linkspeed always failed.

Change-Id: If37732867f91e2b95996614ab863953d5ed5af93
CRs-Fixed: 2232332
2018-05-02 21:46:40 -07:00
nshrivas
894a47ad13 Release 5.2.0.76A
Release 5.2.0.76A

Change-Id: I48dbb32aad8f3ed71d60d0d5e6dac10ebf5a1a99
CRs-Fixed: 774533
2018-05-02 19:47:56 -07:00
Sravan Kumar Kairam
fbc87b7230 qcacld-3.0: Fix wlan_ipa_set_perf_level failure for UNIFIED_WDI_API
Add Unified WDI API support for ol_txrx_ipa_set_perf_level and fix
client parameter for ipa_wdi_set_perf_profile.

Change-Id: Ieaaf7cf5231f74cd6ba358c02032ae173d9618f0
CRs-Fixed: 2211504
2018-05-02 19:47:55 -07:00
nshrivas
e42017b6df Release 5.2.0.76
Release 5.2.0.76

Change-Id: Icaf0b530dcfe3e6c5f0467659b3a946eff8abeef
CRs-Fixed: 774533
2018-05-02 18:46:06 -07:00
Naveen Rawat
f8792bd18a qcacld-3.0: Move chanmode_to_chanwidth API to qcacmn
Move chanmode_to_chanwidth API to qcacmn since it will be used by ndp
schedule update event.

Change-Id: I13d00c0b818eb0da434c8a5372b2ab7b6693f22a
CRs-Fixed: 2216803
2018-05-02 18:46:06 -07:00
nshrivas
4f25bf4a93 Release 5.2.0.75Z
Release 5.2.0.75Z

Change-Id: Ica797b33b68fcce5472c7e13297bbaa8e136aab0
CRs-Fixed: 774533
2018-05-02 17:35:47 -07:00
Srinivas Girigowda
d6e47508f4 qcacld-3.0: Fix compile error for uninitialized variables
The wlan driver produces compilation errors (with some strict build
options).
Fix compile error for uninitialized variables.

Change-Id: I5cf00aeca446270d6ad6c94b6eeefc63149d064e
CRs-Fixed: 2221120
2018-05-02 17:35:47 -07:00
nshrivas
66b7a5e0b5 Release 5.2.0.75Y
Release 5.2.0.75Y

Change-Id: I95d7ed0f1b32fb80728af7433fee5e16e0d8396e
CRs-Fixed: 774533
2018-05-02 05:40:14 -07:00
hqu
8f11faa1c0 qcacld-3.0: Use secondary_ch to calculate ACS result params
In shielding room, bring up one 2.4G SAP with HT40+ on channel 6,
but hostapd_cli command will report HT40-. Root cause is it uses
sec_ch_offset when calculate ACS result params, it's wrong.

Fix is to use secondary_ch when calculate ACS result params.

Change-Id: I41a5d0e4be0d2e3046d0004c25f11f2905a3b911
CRs-Fixed: 2221588
2018-05-02 05:40:13 -07:00
nshrivas
015e55dafb Release 5.2.0.75X
Release 5.2.0.75X

Change-Id: Ia24aeb96b1d9a5fa419f69a24859a8161b4338e6
CRs-Fixed: 774533
2018-05-02 04:34:52 -07:00
Manjunathappa Prakash
7b0ad46796 qcacld-3.0: Add GRO support for STA mode
Add GRO support and make it configurable through INI(GROEnable).
GRO and LRO are mutually exclusive. Only one of them can be enabled.
And disable GRO during following conditions
1) Low TPUT scenario
2) Concurrency cases
3) For Rx packets when Peer is not connected

Change-Id: I15535827a03953231670d4138235c4876b16e045
CRs-Fixed: 2098772
2018-05-02 04:34:52 -07:00
Rajeev Kumar
ba5dcc5518 qcacld-3.0: Remove obsolete ini item gBmpsModListenInterval
INI item "gBmpsModListenInterval" is not used and hence remove
it from source code.

Change-Id: I32cae84a200541e9028667f16736ce5394bae4b7
CRs-Fixed: 2232887
2018-05-02 04:34:49 -07:00
Naveen Rawat
69623ef28d qcacld-3.0: Avoid integer underflow in dot11f_unpack functions
In function dot11f_unpack functions length of buffer passed is
decremented as pointer advances in the buffer. Add a check for
integer underflow before decrementing the length.

Change-Id: I4ed39d326855c2027ff0bc3cbe5c8981a2ae2aa1
CRs-Fixed: 2231755
2018-05-02 04:34:46 -07:00
nshrivas
ba3feae314 Release 5.2.0.75W
Release 5.2.0.75W

Change-Id: I11438877e658f59bce1131029f7b9a0941eed92a
CRs-Fixed: 774533
2018-05-01 20:25:31 -07:00
Yun Park
81c973e1d7 Revert "qcacld-3.0: Update IPA uC TXRX stats to adapter stats"
This reverts Change-Id: Ib6b112c8891da753be3782ff621191e5edc4d925

Change-Id: I7bfde78e67ca9c9edd9e25b69a2c55ffe1c9b87e
CRs-Fixed: 2234379
2018-05-01 16:18:48 -07:00
nshrivas
caf255df4b Release 5.2.0.75V
Release 5.2.0.75V

Change-Id: Iafe9bad9bc1598d5a0228b4a7b2509a9c1032ed9
CRs-Fixed: 774533
2018-05-01 06:20:22 -07:00
Arunk Khandavalli
5923cc98c8 qcacld-3.0: Dont process uevent request when the modules are closed
When the SSR is triggered after the modules are closed, uevent
notifier is trying to get the pdev which is alredy destroyed.

Reject the uevent notification if the modules are already closed.

Change-Id: I8074838b18b1e36dd67afa90125f9fbe06d32c34
CRs-Fixed: 2219843
2018-05-01 06:20:21 -07:00