Commit Graph

10067 Commits

Author SHA1 Message Date
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
Ashish Kumar Dhanotiya
f974f3355f qcacld-3.0: Avoid duplicate MAC configuration
Currently if the MAC is changed dynamically for any interface,
driver is allowing to configure a MAC which is already in use by
some other interface and it will allow different interfaces to
come up on same MAC address.

To address this issue add a check to configfure only different
MAC address.

Change-Id: Iece3bb063be30d5d983f4bec710d6d16b22bd2f9
CRs-Fixed: 2227656
2018-04-26 07:18:15 -07:00
nshrivas
703b24f9e8 Release 5.2.0.75H
Release 5.2.0.75H

Change-Id: I326d9907d03e014e93fe8f0fd053a2b80e9a9cbf
CRs-Fixed: 774533
2018-04-26 06:19:18 -07:00
Himanshu Agarwal
51d818cb2a qcacld-3.0: Don't fill any WMA request if target is not ready
If any WMA request is queued in wma hold req/vdev resp queue after fw
has crashed and sent the corresponding uevent to HOST, request will
timeout and if at the same time, SSR is also going on, it may lead to
various issues and crashes.

Check whether target is ready or not before queuing any request
in wma hold req/vdev resp queue.

Change-Id: I358841566f858e115b3b04f12f4d8b70b75d1dfc
CRs-Fixed: 2226497
2018-04-26 06:19:18 -07:00
nshrivas
cc016a120d Release 5.2.0.75G
Release 5.2.0.75G

Change-Id: Ia5009ce1bc563b2796d9fc7fc26da7ca3a29d3fe
CRs-Fixed: 774533
2018-04-26 04:07:24 -07:00
wadesong
d547766258 qcacld-3.0: Refine CSR scan related action sequences
1) In csr_start, CSR module's scan callback function is currently
registered after scan is enabled. This can result in a potential
memory leak of the per-session CSR scan profile's child buffers
when the following events take place in sequence:

    (1) CSR scan is enabled
    (2) Upper layer invokes CSR module for scan requests
        (per-session CSR scan profile's child buffers are
        allocated here)
    (3) Scan finished, but no CSR callback is registered to
        handle it so the previously allocated child buffers
        are leaked
    (4) CSR scan callback function is registered later, but
        it's already too late

Move the CSR scan enabling code to a place after CSR scan
callback is registered to fix the potential memory leakage.

2) CSR scan should be stopped before sessions are closed, and
session init code should not re-enable CSR scan again during
session clean up stage. Or there will be another chance for
the same issue as in 1) to happen again.

3) CSR scan callback function should be deregistered before
a session is closed and cleaned up.

4) Per-session CSR scan profile pointer should be checked
during session clean up and its buffer and child buffers
should be freed to avoid any potential memory leak.

Change-Id: I99101170a58f63b239db620dea01d210e83d9367
CRs-Fixed: 2228321
2018-04-26 04:07:24 -07:00
Ashish Kumar Dhanotiya
eff05f1de1 qcacld-3.0: Update Tx aggregation INIs to Internal
Update the usage type of gTxAggSwRetryBE, gTxAggSwRetryBK,
gTxAggSwRetryVI, gTxAggSwRetryVO, gTxAggregationSizeBE,
gTxAggregationSizeBK, gTxAggregationSizeVI, gTxAggregationSizeVO
from external to internal.

Change-Id: Idd4c6d9f3c03fef9e3d3600871c20ad419bac6b0
CRs-Fixed: 2230035
2018-04-26 04:07:21 -07:00
nshrivas
5b24787f54 Release 5.2.0.75F
Release 5.2.0.75F

Change-Id: I5ed3be42c98f95aed94bacaeb178ae549ab5315b
CRs-Fixed: 774533
2018-04-26 00:58:17 -07:00
Jingxiang Ge
95912f8be5 qcacld-3.0: Fix memory leak when cds_pre_enable fails
runtime lock/pdev/pdev object are allocated when receive
rx ready event. If cdp_pdev_post_attach fails in cds_pre_enable,
such resources are also needed to release.

Change-Id: I549567d1125ce3b28c0ce6f3a9bda62e6209be09
CRs-Fixed: 2222363
2018-04-26 00:58:16 -07:00
nshrivas
0d510b8f14 Release 5.2.0.75E
Release 5.2.0.75E

Change-Id: I529d195d427276ef6c98f54fdf981ccae48acf26
CRs-Fixed: 774533
2018-04-25 14:30:31 -07:00
Rajeev Kumar
109683cf30 qcacld-3.0: Add feature flag for PMO component (part-1)
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: I2c88b6af33e8f10f1837263f157c1f6892a2c2fb
CRs-Fixed: 2227326
2018-04-25 14:30:31 -07:00
nshrivas
4d61b58114 Release 5.2.0.75D
Release 5.2.0.75D

Change-Id: Ib4e8b859b0274a170fec8f8d61b98407efcdedce
CRs-Fixed: 774533
2018-04-25 07:36:19 -07:00
Yun Park
a29974a3ae qcacld-3.0: Remove IPA uC stat log when IPA pipe is suspended
There's an excessive log for IPA uC stat request reason even when
WDI pipe is suspended.
Enable IPA uC stat request reason log only when IPA pipe is resumed.

Change-Id: I35d98e02a9180738bc9cdb25f59e31d572df9e0e
CRs-Fixed: 2181952
2018-04-25 07:36:19 -07:00
nshrivas
4b42917ba0 Release 5.2.0.75C
Release 5.2.0.75C

Change-Id: Ic1527fa44bcc1c1146c4d859fef93f5620d7345a
CRs-Fixed: 774533
2018-04-25 06:26:48 -07:00
Rajeev Kumar Sirasanagandla
92ec9d9742 qcacld-3.0: Avoid log of user buffer in GETIBSSPEERINFO IOCTL
While processing GETIBSSPEERINFO IOCTL command, respective handler
drv_cmd_get_ibss_peer_info() is logging user-buffer which can cause
page fault error.

To fix this, log local buffer (extra) instead of
user buffer (priv_data->buf).

Change-Id: I6260120690c4715de31fe0f9404aa5928c0feb49
CRs-Fixed: 2227050
2018-04-25 06:26:48 -07:00
nshrivas
6a6dbdcf1f Release 5.2.0.75B
Release 5.2.0.75B

Change-Id: I6299ddece23d9a40bbbcddbabfce7473fd589d6c
CRs-Fixed: 774533
2018-04-25 00:43:13 -07:00
Sravan Kumar Kairam
c8eec8a827 qcacld-3.0: Extend support to get IPA HW status on all platforms
Extend support to get IPA HW status on all platforms if IPA OFFLOAD
feature is enabled.

Change-Id: Ideea6b7f058b3d80efecc9473a20d7a31046b4bc
CRs-Fixed: 2230316
2018-04-25 00:43:12 -07:00
nshrivas
ee620b36c0 Release 5.2.0.75A
Release 5.2.0.75A

Change-Id: I4bc280d9e471100a907bbba72413e4d331e4c1bf
CRs-Fixed: 774533
2018-04-24 22:50:00 -07:00
Yun Park
21ec490dbd qcacld-3.0: Cleanup interface when loading/unloading timeout
When AP_DISCONNECT event occurs during IPA resource unloading in
progress, timeout could happen since suspending FW IPA Rx pipe took much
time. This could cause a subsequent AP_CONNECT event failed since no
interface is available.
Fix this by
- Adapter struct sanity check using hdd_validate_adapter()
- Call hdd_ipa_cleanup_iface() for AP_DISCONNECT/STA_DISCONNECT event
  in loading/unloading timeout case
- Assert when no interface is available in hdd_ipa_setup_iface()

Change-Id: Ie96e4f0e96ccffacf4ce5fcc976636c440214873
CRs-Fixed: 2208347
2018-04-24 22:50:00 -07:00
nshrivas
b832282230 Release 5.2.0.75
Release 5.2.0.75

Change-Id: Ibb194a56475acd476e993bf2186172e4aefadb31
CRs-Fixed: 774533
2018-04-24 20:50:27 -07:00
Arif Hussain
4c26513ac4 qcacld-3.0: Fix null pointer dereference in sending probe req
Add null check when accessing additional_ielen in function
lim_send_probe_req_mgmt_frame function to avoid null pointer
dereference.

Change-Id: Ida382b274d211431ba808817cb0d5e9c3f783c0c
CRs-Fixed: 2229848
2018-04-24 20:50:27 -07:00