Commit Graph

10037 Commits

Author SHA1 Message Date
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
nshrivas
bd7f777b1f Release 5.2.0.75P
Release 5.2.0.75P

Change-Id: Ie593319bd1ca4a7d73e6bfee6a566699f9a75c0c
CRs-Fixed: 774533
2018-04-30 12:20:17 -07:00
Sravan Kumar Kairam
9b3baba08a qcacld-3.0: Update IPA uC TXRX stats to adapter stats
Update the queried IPA uC TXRX stats to adapter netdev
stats.

Change-Id: Ib6b112c8891da753be3782ff621191e5edc4d925
CRs-Fixed: 2226666
2018-04-30 04:57:17 -07:00
nshrivas
ff57900b5c Release 5.2.0.75O
Release 5.2.0.75O

Change-Id: I5bf64756a82e2eca3e124a9cc8da8a5af1d056b9
CRs-Fixed: 774533
2018-04-28 12:57:24 -07:00
Himanshu Agarwal
bdc776f92e qcacld-3.0: Change ce_service_max_yield_time ini to us granularity
Change ce_service_max_yield_time ini to us granularity to have
yield time of us order as well.

Change-Id: Ib9e421ad61b660194459c2ee44b2d36a07a21e61
CRs-fixed: 2086153
2018-04-28 12:57:24 -07:00
Poddar, Siddarth
04eed33241 qcacld-3.0: Add ini support to change ce service max rx indication flush
Add ini support to change ce service max rx indication flush num
to handle given number of rx indication at a time to maintain
napi yield timelines. This is used to tune the yield time based on
system needs.

Change-Id: Ib66f23c83d64f2bc16a352067816512c3d8defef
CRs-Fixed: 2068367
2018-04-28 12:57:21 -07:00
nshrivas
865f8b8ffc Release 5.2.0.75N
Release 5.2.0.75N

Change-Id: I391e27b7a9321cc7553009c0832c459cf372c3b1
CRs-Fixed: 774533
2018-04-28 10:19:58 -07:00
Tushnim Bhattacharyya
581b4c82a7 qcacld-3.0: Change the log level to debug in ipa_is_fw_wdi_activated
There's an excessive log for IPA if IPA is disabled on ini but enabled
in FW. Change the log level to debug from info.

Change-Id: I60a49132bc00b06fc0725c7a3f648fa773321f56
CRs-Fixed: 2232196
2018-04-28 10:19:58 -07:00
nshrivas
28874dc7ef Release 5.2.0.75M
Release 5.2.0.75M

Change-Id: I629dfe6edecb4f4db37448179c0542cfda585c32
CRs-Fixed: 774533
2018-04-26 21:38:56 -07:00
Himanshu Agarwal
fc5d66088a qcacld-3.0: Send frames with GCMP MIC LEN if encryption is GCMP
CCMP and GCMP both have different lengths of their MIC part. MIC
length for CCMP is 8 bytes whereas it is 16 bytes for GCMP. When
encryption type is GCMP/GCMP-256, sending packets with CCMP MIC
length causes fw to drop the GCMP encrypted management packets
leading to connection issues.

Send GCMP encrypted frames with GCMP MIC length.

Change-Id: Ia83fa6ffde880fe69e5e4c3e3c3ce9c62ad8fa3c
CRs-Fixed: 2203224
2018-04-26 21:38:55 -07:00
nshrivas
95e5f12422 Release 5.2.0.75L
Release 5.2.0.75L

Change-Id: I88808f8abb1e572088e1d5214d8ee14ec1d9ba89
CRs-Fixed: 774533
2018-04-26 18:24:17 -07:00
Dustin Brown
c88e596903 qcacld-3.0: Removed unused sme_config in __iw_setint_getnone()
__iw_setint_getnone() allocates and frees an instance of
tSmeConfigParams, which is unused. Remove this local variable.

Change-Id: Iad8383ad4bd95978ac74b5a177923be14c45f0c0
CRs-Fixed: 2232057
2018-04-26 18:24:17 -07:00
Dustin Brown
d90f61a13c qcacld-3.0: Extract WE_SET_11D_STATE handling
Extract the sub-IOCTL handling for WE_SET_11D_STATE into its own function.

Change-Id: I879ea977e23945aa7d85a6f9ebb3194d9761fd0c
CRs-Fixed: 2232056
2018-04-26 18:24:15 -07:00
Dustin Brown
65a6f0d27f qcacld-3.0: Extract WE_SET_CHWIDTH handling
Extract the sub-IOCTL handling for WE_SEG_CHWIDTH into its own function.

Change-Id: I8bc027fad3f24f1601d4b2f97e2a485b10cb7111
CRs-Fixed: 2232055
2018-04-26 18:24:12 -07:00
nshrivas
4df265252d Release 5.2.0.75K
Release 5.2.0.75K

Change-Id: Ibc487cd30126a2dd0415a6d781f64671b253a47d
CRs-Fixed: 774533
2018-04-26 16:02:01 -07:00
Naveen Rawat
d6d06e60e6 qcacld-3.0: Change default value of CSN to 4
Change default value of CSN to 4 to disable default capability of
8 stream beamformee. The value can still be configured with ini.

Change-Id: I814e10cc7da176dd12c154b8870b4d261ebb4789
CRs-Fixed: 2231358
2018-04-26 16:02:01 -07:00
Rajeev Kumar
289f3c401a qcacld-3.0: Add feature flag for PMO component (part-2)
Add feature flag for PMO component such that for high latency
and IoT devices power management and offload component can be
compiled out.

Change-Id: Iaccda7d9e895cdb4610f0ec984add3aeb7ef9926
CRs-Fixed: 2227330
2018-04-26 16:01:57 -07:00
nshrivas
e6ac8e9190 Release 5.2.0.75J
Release 5.2.0.75J

Change-Id: Id3e879c56f433515b23735f10114e59da40fc617
CRs-Fixed: 774533
2018-04-26 13:12:08 -07:00
Himanshu Agarwal
24aa27ea06 qcacld-3.0: Add ini support to change ce service max yield time
Add ini support to change ce service max yield time, so that we can
tune the napi SWI context of execution based on the system needs and
add a variable in napi stats to record max time taken in NAPI poll.

Change-Id: Id2b47bcecb777b98e0b1192135ae140b681d387d
CRs-Fixed: 2055074
2018-04-26 13:12:07 -07:00
jitiphil
10ff2ff9ed qcacld-3.0: Fix buffer overflow in htt_t2h_msg_handler_fast
Currently variable "num_mpdu_ranges" is from message, which is used
directly without any validation which causes buffer over-write.

To avoid buffer over-write add check for the valid num_mpdu_ranges

Change-Id: I54e138d4bd63cbe7a0ae4faf0fe9d8e59ca92c71
CRs-Fixed: 2213655
2018-04-26 13:12:04 -07:00
nshrivas
ad681bd944 Release 5.2.0.75I
Release 5.2.0.75I

Change-Id: I7a97308ce5d5ef43652966b76268ce496847c53e
CRs-Fixed: 774533
2018-04-26 07:18:15 -07:00