Commit Graph

9903 Commits

Author SHA1 Message Date
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
Naveen Rawat
23183d6c73 qcacld-3.0: Add kernel dependent macros for STA_INFO attributes
Depending on kernel version attrbutes NL80211_STA_INFO_XXX or
STATION_INFO_XXX are being used to update necessary infomation
to user space. Define macros as per kernel version and avoid
usage of kernel version macro within functions.

Change-Id: Ia265fd90d3a3ab8e6431fceb37980778a046c545
CRs-Fixed: 2223575
2018-04-24 20:50:24 -07:00
nshrivas
2618d5747e Release 5.2.0.74Z
Release 5.2.0.74Z

Change-Id: I28a076bbdbcd0bbe08866e2765f626c03515316b
CRs-Fixed: 774533
2018-04-24 18:30:32 -07:00
Amar Singhal
50d3075154 qcacld-3.0: log the regdomain parameters
Log the reg-domain parameters when sending command
WMI_PDEV_SET_REGDOMAIN_CMDID to FW.

Change-Id: I9cc9437b9b9be9a1f7c58ca08a7d6456f9bdebcf
CRs-Fixed: 2229604
2018-04-24 18:30:32 -07:00
nshrivas
f746c186cf Release 5.2.0.74Y
Release 5.2.0.74Y

Change-Id: I720123eab3c9e92950933e037ec957f87c02fff2
CRs-Fixed: 774533
2018-04-24 17:17:26 -07:00
Krunal Soni
e23c41a517 qcacld-3.0: Pull head from skb in monitor mode to make a room for rtap
Some of the platforms delivers the msdu with skb head and skb data
pointing to same address, in such cases do skb pull to create a room
for radiotap hdr and let qdf_nbuf_update_radiotap() API handle creating
room for radiotap header.

Note: When skb head and skb data pointer points to same
address, it indicates that radiotap size is already considered in
headroom.

CRs-Fixed: 2230412
Change-Id: Ide49544873554ae38a49af1511fd5bafd0d25102
2018-04-24 17:17:25 -07:00
nshrivas
b019c3db08 Release 5.2.0.74X
Release 5.2.0.74X

Change-Id: If0bfc40cbab3a0d2b2b5802483f383744d3be369
CRs-Fixed: 774533
2018-04-24 14:48:55 -07:00
Jeff Johnson
172b7d52f2 qcacld-3.0: mac: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Ia4796704a2a564586352d208f779b5d9e73ad029
CRs-Fixed: 2229655
2018-04-24 14:48:55 -07:00
Jeff Johnson
3032101c48 qcacld-3.0: bmi: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Ifce2b7d373a6a1233f091feb3f0e67578715ebeb
CRs-Fixed: 2229655
2018-04-24 14:48:51 -07:00
Jeff Johnson
f8b4d424cf qcacld-3.0: sap: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I05b2f8ed3e48de4347475d279d4de409d4eece42
CRs-Fixed: 2229655
2018-04-24 14:48:48 -07:00
Jeff Johnson
cec401235e qcacld-3.0: cds: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I5aa9814a2c281f28d84c8775480b454fec8ae9bf
CRs-Fixed: 2229655
2018-04-24 14:48:44 -07:00
Jeff Johnson
56e4e36ee8 qcacld-3.0: pld: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Idd9e17b79c5de9206153f3c32965b519665b6a3e
CRs-Fixed: 2229655
2018-04-24 14:48:41 -07:00
Jeff Johnson
1896fdcb30 qcacld-3.0: dp: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Id790fa94c7b6feb91db5f3d91630bf0cd5264192
CRs-Fixed: 2229655
2018-04-24 14:48:38 -07:00
Jeff Johnson
5d310d2a15 qcacld-3.0: sme: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I0f45085f6a98b89a4468849ac00538100d903698
CRs-Fixed: 2229655
2018-04-24 14:48:34 -07:00
Jeff Johnson
f367ac732a qcacld-3.0: hdd: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I616925db8255eb2f1e327cd2ddb3da70d47ca943
CRs-Fixed: 2229655
2018-04-24 14:48:31 -07:00