Commit Graph

9189 Commits

Author SHA1 Message Date
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
Dundi Raviteja
e7b11b8721 qcacld-3.0: Possble OOB access in hdd_set_limit_off_chan_for_tos()
Currently, in __wlan_hdd_cfg80211_set_limit_offchan_param() function after
parsing the 'tos' value from incoming netlink buffer there is no check
against the max value of tos. This tos value is passsed as an argument
to hdd_set_limit_off_chan_for_tos() function where it is using as an array
index for 'limit_off_chan_tbl' variable which is limited to HDD_MAX_AC.
This may cause out of bound access.

Add check to ensure the parsed tos value is not greater than
or equals to its max value.

Change-Id: I661af1f9559d9bec627594d119423be97978ac2c
CRs-Fixed: 2222803
2018-05-01 06:20:18 -07:00
nshrivas
523fc215a5 Release 5.2.0.75U
Release 5.2.0.75U

Change-Id: Ie09c9bb208f99d40848648075fdfb2e9c2216f98
CRs-Fixed: 774533
2018-05-01 03:59:09 -07:00
Dundi Raviteja
0a2a65bb24 qcacld-3.0: Add fallthrough comment between switch cases
Currently, there is no break statement between switch cases in
function hdd_stop_present_mode(), here first case has to
fall through the next case instead of using break statement.

Add /* fallthrough */ comment between the cases.

Change-Id: I518628fb8ee084a0ea8de5c98c18a9a6c20b2637
CRs-Fixed: 2233177
2018-05-01 03:59:09 -07:00
nshrivas
d07bc81582 Release 5.2.0.75T
Release 5.2.0.75T

Change-Id: I514cd6c1c0c01626282fb7f78aa12c4a0e8f9ec7
CRs-Fixed: 774533
2018-05-01 02:33:45 -07:00
Vignesh Viswanathan
686833aedd qcacld-3.0: Add sanity check for kek_len and pmk_len in WMA roam synch
In wma_fill_roam_synch_buffer, fils_info is received from the FW
as part of roam synch event and contains kek_len and pmk_len. These
lengths are used to copy the kek and pmk from the FW buffer to the
roam_synch_ind_ptr respectively.

If the kek_len exceeds the SIR_KEK_KEY_LEN_FILS or pmk_len exceeds
the SIR_PMK_LEN value, a buffer overwrite would occur during
memcpy.

Add sanity check to return error if kek_len exceeds SIR_KEK_KEY_LEN_FILS
or if pmk_len exceeds SIR_PMK_LEN.

Change-Id: I8035c54cb4cbd5b4065646377f7d1d2824f9c436
CRs-Fixed: 2226386
2018-04-30 21:13:09 -07:00
nshrivas
a36e9eb084 Release 5.2.0.75S
Release 5.2.0.75S

Change-Id: I55eee1beb272dc852a27a13f9b8d414d654b51be
CRs-Fixed: 774533
2018-04-30 19:50:16 -07:00
Naveen Rawat
6e45d9ad7a qcacld-3.0: Avoid un-initialized access to arp rsp_stats
In function wma_get_arp_stats_handler avoid un-initialized
access to arp rsp_stats by initializing it to 0s.

Change-Id: I95c41f89740bff276ed5c6736b4ad9da3ef6ce87
CRs-Fixed: 2232401
2018-04-30 19:50:16 -07:00
nshrivas
69996014d4 Release 5.2.0.75R
Release 5.2.0.75R

Change-Id: Ic4220611c88b528209781dd880f6eb5a41af71b2
CRs-Fixed: 774533
2018-04-30 18:19:18 -07:00
Jeff Johnson
46807cd264 qcacld-3.0: Add fallthrough comment in hdd_stop_adapter()
In hdd_stop_adapter() there is a switch statement where the logic for
case QDF_SAP_MODE falls through to the next case. Add a fallthrough
comment to explicitly document that this is the desired behavior as
opposed to a missing break statement.

Change-Id: I2fc7b2eeb07eb91b57d5008e74267667a5995c6e
CRs-Fixed: 2233181
2018-04-30 18:19:17 -07:00
Jeff Johnson
48c05c7fb8 qcacld-3.0: Add fallthrough comment in hdd_sme_roam_callback()
In hdd_sme_roam_callback() there is a switch statement where the logic
for case eCSR_ROAM_CANCELLED falls through to the next case. Add a
fallthrough comment to explicitly document that this is the desired
behavior as opposed to a missing break statement.

Change-Id: Ic5fd5c92d7ab421a60d56dfc7761578b554349c6
CRs-Fixed: 2233180
2018-04-30 18:19:13 -07:00
nshrivas
c1c96e3f8f Release 5.2.0.75Q
Release 5.2.0.75Q

Change-Id: Ic3194e36d511a759c266872f711ac1764b9c0c60
CRs-Fixed: 774533
2018-04-30 17:19:50 -07:00
Jeff Johnson
3d72577fe2 qcacld-3.0: Correctly set channelBondingMode5GHz
In wlan_hdd_update_phymode() when the curr_band is set to BAND_5G the
channelBondingMode5GHz is not correctly set. Fix the logic which
currently has duplicated test for BAND_2G to test for both BAND_2G and
BAND_5G.

Change-Id: I70ed07d12ae891374e511905213ef7fcc7a7f1f1
CRs-Fixed: 2232919
2018-04-30 17:19:50 -07:00
Arif Hussain
67c583add9 qcacld-3.0: Add kernel backport versions
Add kernel backport versions for below kernel flag
- CFG80211_REPORT_BETTER_BSS_IN_SCHED_SCAN

Change-Id: Ie89b8c639070ffe25c4410088c0e154801f5f07d
CRs-Fixed: 2226504
2018-04-30 17:19:47 -07:00
Jeff Johnson
2a8a64f5cf qcacld-3.0: Fix data hiding violation in __iw_get_char_setnone()
Currently in __iw_get_char_setnone() while processing the
WE_GET_STATES ioctl a call is made to PMAC_STRUCT() to convert a HAL
handle into a tpAniSirGlobal (aka pMac). This is a data hiding
violation since use of pMac should be constrained to the UMAC -- HDD
should not be utilizing this data structure. And it turns out that
after PMAC_STRUCT() is called the resulting pMac actually isn't used
other than testing for NULL. Furthermore this is dead code since the
HAL handle was already tested for NULL and hence the pMac could never
be NULL at the point it is tested. So fix this data hiding violation
by completely removing the code that populates and tests pMac.

Change-Id: I73fc7c388f4482e5c483a4982231f934cc80ef6c
CRs-Fixed: 2232897
2018-04-30 17:19:44 -07:00
Jeff Johnson
00052ddea9 qcacld-3.0: Add fallthrough comment in __iw_set_host_offload()
In __iw_set_host_offload() there is a switch statement where the logic
for case WLAN_OFFLOAD_ARP_AND_BC_FILTER_ENABLE falls through to the
next case. Add a fallthrough comment to explicitly document that this
is the desired behavior as opposed to a missing break statement.

Change-Id: I9a7d84841d9d059e822ee15ee482111ca9d87caf
CRs-Fixed: 2233178
2018-04-30 17:19:41 -07:00