Commit Graph

4253 Commits

Author SHA1 Message Date
Naveen Rawat
cb5c540e7f qcacld-3.0: Implementation of NDI Create/Delete
Add MCL changes for NDI create and NDI delete commands.

Change-Id: I270cd213d89224f73ff2ce9fad784cec3e0f8fa3
CRs-Fixed: 2014795
2017-04-07 11:58:39 -07:00
Sandeep Puligilla
490df437eb Release 5.2.0.19Z
Release 5.2.0.19Z

Change-Id: I93895e94d53b822c4b483356d07657b4f8c58aa2
CRs-Fixed: 774533
2017-04-07 08:41:31 -07:00
Rajeev Kumar
7414c8ce79 qcacld-3.0: Enhance log message in sme_open_session
Log session id in sme_open_session to know what session id
is allocated by object manager.

Change-Id: I1842d772916d5a6bd251aead727d3448a46d9e41
CRs-Fixed: 2030327
2017-04-07 08:41:30 -07:00
Sandeep Puligilla
56c6ee1ade Release 5.2.0.19Y
Release 5.2.0.19Y

Change-Id: Ic01c4c1eb3e84550c3f5d37759bcee44917ae091
CRs-Fixed: 774533
2017-04-07 07:12:19 -07:00
Poddar, Siddarth
16264472d9 qcacld-3.0: HTT: Reduce the log spam in Kmsg
Move the logs to appropriate log levels to reduce
the log spam in kmsg.

CRs-Fixed: 2019261
Change-Id: I7e7d8c6f90f8f9feefbfb72217886fcd812cf39c
2017-04-07 07:12:18 -07:00
Sandeep Puligilla
c685435961 Release 5.2.0.19X
Release 5.2.0.19X

Change-Id: I287ee468d9f620d1ede89fa515fb28957655da27
CRs-Fixed: 774533
2017-04-07 06:37:37 -07:00
Srinivas Girigowda
b8ecec2fb3 qcacld-3.0: TXRX: Reduce the log spam in kmsg
Move the logs to appropriate log levels to reduce
the log spam in kmsg.

Change-Id: Ic22302a2f042f693d4bcc1f0efe647d580be33ed
CRs-Fixed: 2014745
2017-04-07 06:37:37 -07:00
Sandeep Puligilla
dd63c68aa5 Release 5.2.0.19W
Release 5.2.0.19W

Change-Id: I71711b71037d9b75dc461a6e7103ecd1860b7ad1
CRs-Fixed: 774533
2017-04-07 06:02:08 -07:00
Srinivas Girigowda
35e65f8322 qcacld-3.0: HTT: Reduce the log spam in kmsg
Move the logs to appropriate log levels to reduce
the log spam in kmsg.

Change-Id: I6572cb109ff752eba764f671770d9754024a4b31
CRs-Fixed: 2014745
2017-04-07 06:02:08 -07:00
Sandeep Puligilla
508b0fa93c Release 5.2.0.19V
Release 5.2.0.19V

Change-Id: Ie55b3c40de76ee804c82b80a9ca1a8b949edbe7c
CRs-Fixed: 774533
2017-04-07 04:23:13 -07:00
Abhishek Singh
b20db96d64 qcacld-3.0: Add PNO changes for converged scan
Adds PNO related changes for converged scan.

Change-Id: Ie7194d15d2d6ad5e4327e3aadbb4e39a5bf576a8
CRs-Fixed: 2013212
2017-04-07 04:23:13 -07:00
Sandeep Puligilla
9ccc145b90 Release 5.2.0.19U
Release 5.2.0.19U

Change-Id: Ic61b6356b90abc17477a2790a8ef9bd2b877d51d
CRs-Fixed: 774533
2017-04-07 02:35:58 -07:00
Mohit Khanna
ebf4ca31c0 qcacld-3.0: change hdd_skb_orphan to static inline
hdd_skb_orphan is currently a static function. If not used, it may cause
compilation error.
Make the function static inline.

Change-Id: I5d78f597f2f694d370dbe7631be0a7ebc8572b0d
CRs-Fixed: 2020167
2017-04-07 02:35:58 -07:00
Mohit Khanna
d0b63f5e47 qcacld-3.0: Improve TX throughput for UDP apps with small buffers
Currently, in case the application send buffer size is very small (< 64k),
the application TX throughput is limited by its send buffer
(sk->sk_sndbuf). Once the send buffer is full (sk->sk_wmem_alloc
becomes greater or equal to sk->sk_sndbuf), the application can send
more data only when TX completions have arrived for some of the buffers
in the send buffer and some space is created.

Allow application(s) to send as much data over the wlan interface as
they may have, limited by the capability of the driver. Since the
driver has a limited number of TX descriptors, the maximum amount of
outstanding TX buffers are limited by the maximum number of TX
descriptors for that interface. For example, if the number of TX
descriptors for wlan0 are 1200, there can be at max 1200 (MSDU sized) TX packets.

Change-Id: I75eca2f4e10ecde1a5b347a305e896ac17d4ef7c
CRs-Fixed: 2016357
2017-04-07 02:35:49 -07:00
Mohit Khanna
f9f659735a qcacld-3.0: Fix TSO seg cookie init crash
In one of the recent fixes, we are setting the TSO seg contents to zero
when the segment is added back to the free list. The segment cookie is
not re-initalized at this point. Hence, when this segment is
re-allocated, it fails the cookie check and there is a system crash.

Fix the issue by reinitializing the segment cookie after zero-ing out
its contents.

Change-Id: I7947e3ce4f80f1b19ebf5ef73ff75dee19ec7364
CRs-Fixed: 2011786
2017-04-07 02:35:47 -07:00
Mohit Khanna
c3b069bca5 qcacld-3.0: Debug logs to detect TSO seg double free
On stability test bed a double free of TSO segment is reported via the
TX completion path. Made following changes -
 - Check for duplicate TX completions before freeing TSO segments.
 - Add debug logs to check if TX descriptors are being freed from the
   control path.

Change-Id: I30178de90cd0161001ded70adc26066adc9cbcb3
CRs-Fixed: 2006868
2017-04-07 02:35:45 -07:00
Mohit Khanna
c3da706c60 qcacld-3.0: Fix Rx throughput level calculation
Currently the rx throughput level is getting set to TP_NONE immediately
after it goes high. This will send incorrect values for
tcp_adv_win_scaling to cnss-daemon.
Fix the RX throuhgput level by making next_rx_level a static variable.
Now if next_rx_level is calculated to be HIGH, it will stay HIGH until
RX throughput falls below the threshold

Change-Id: Iaa36e4ff6d846e29b3beadd998a3d6fd334c1a5b
CRs-Fixed: 2004944
2017-04-07 02:35:42 -07:00
Mohit Khanna
b1dd1e8749 qcacld-3.0: Calculate HDD TX stats correctly for TSO packets
Currently the number of TX packets sent is simply calculated by the
number of times hard_xmit_function is called. We use the number of TX
(and Rx) packets in a 100ms interval, to tweak the system for high
bandwidth scenarios.
For, TSO jumbo packets, in high throughput scenarios, the number of TX
packets received in 100ms interval remains low because of aggregation.
This causes the driver to incorrectly detect the throughput mode(low).

Calculate total TX packet (in 100 ms interval) based on the size of the TSO
jumbo packet. This will allow the driver to trigger high throughput mode
and tweak system parameters correctly.

Change-Id: I3c7a3c3992b41d3a00ff903e6317a62394c1c0fe
CRs-Fixed: 2002971
2017-04-07 02:35:39 -07:00
Mohit Khanna
67fe5288d4 qcacld-3.0: modify NAPI blacklist mechanism
The existing HIF NAPI blacklist feature uses irq_blacklist_on(off) APIs
which make a call to the userspace irq_balancer.

Replace these APIs with kernel API irq_modify_status to mark (or
unmark) the individual interrupts with IRQ_NO_BALANCING flag.
Once marked, the msm-irq-balancer will not be able to move the
CE interrupts around

Change-Id: I55b3302b11e6b3a380228d637f20def920760af1
CRs-Fixed: 1114161
2017-04-07 02:35:36 -07:00
Mohit Khanna
afff9fb2cf qcacld-3.0: Make interrupt blacklisting robust
Interrupt blacklisting in kernel 4.4 happens through a user-space
entity. The kernel APIs irq_blacklist_on(off) essentially send
a message to the user space service(irq balancer) and
therefore are not synchronous and do not guarantee that blacklisting
has actually taken effect. It will be granted with some latency
(userspace entity's processing delay).

Make blacklisting more robust by:
a) move irq (if it has been moved around after blacklist_on call
   has been made and not yet honored) to the designated CPU
   on IRQ reception
b) stop cpu_isolation in blacklisting mode boost API
c) modify NAPI stats to indicate blacklisting mode

CRs-Fixed: 1093770
Change-Id: I410768d3e0215e510924859d678c66ad7d87b1ec
2017-04-07 02:35:34 -07:00
Mohit Khanna
3e2115b6e2 qcacld-3.0: Add NAPI statistics to dumpstats
Currently NAPI stats are retrieved as a part of iwpriv getStats command.
The buffer available for this command is limited and NAPI stats get
truncated.

Add a new dumpStats parameter (9) to dump NAPI stats.
The following command will dump NAPI Stats into kmsg.
>iwpriv wlan0 dumpStats 9

Cleanup existing getStats

Change-Id: I0d804295d96a495b4afa576c8258f08c9c2b9bbb
CRs-Fixed: 1076563
2017-04-07 02:35:31 -07:00
Sandeep Puligilla
6876bd4738 Release 5.2.0.19T
Release 5.2.0.19T

Change-Id: Ib75de2d3a20c736f61bda4f2d884edecd514003a
CRs-Fixed: 774533
2017-04-07 01:49:29 -07:00
Srinivas Girigowda
13d39259a9 qcacld-3.0: Reduce the log spam in wlan_hdd_cfg80211.c
Move the logs to appropriate log levels to reduce
the log spam in wlan_hdd_cfg80211.c

Change-Id: I2388a913fa301368754d9c1bf365a3a8478d9997
CRs-Fixed: 2014745
2017-04-07 01:49:28 -07:00
Srinivas Girigowda
5c0ea4fb4a qcacld-3.0: Reduce the log spam in wlan_hdd_cfg.c
Move the logs to appropriate log levels to reduce
the log spam in wlan_hdd_cfg.c

Change-Id: I38c0f7920f1f7b478fae497c65df5daa8192c6d3
CRs-Fixed: 2014745
2017-04-07 01:49:27 -07:00
Srinivas Girigowda
6c8769dfc7 qcacld-3.0: Reduce the log spam in wlan_hdd_assoc.c
Move the logs to appropriate log levels to reduce
the log spam in wlan_hdd_assoc.c

Change-Id: I07d05203058448c1f7a6680da36b244667f6104e
CRs-Fixed: 2014745
2017-04-07 01:49:25 -07:00
Srinivas Girigowda
8187e79b11 qcacld-3.0: Replace wlanLoggingFEToConsole to wlanLoggingToConsole
Currently the config ini "wlanLoggingFEToConsole" specifically talks
about enabling the logs to kmsg for FATAL and ERROR logs.

This cfg.ini item should not be specific to any log level, instead
it should just depict whether logging to console should be enabled
or not.  Hence change wlanLoggingFEToConsole to wlanLoggingToConsole.

Change-Id: I54e340ed58891175b53ac2d0137d15a2baea1c9f
CRs-Fixed: 2014745
2017-04-07 01:49:23 -07:00
Sandeep Puligilla
0038b35b8c Release 5.2.0.19S
Release 5.2.0.19S

Change-Id: I817cfca6638a85322da9c58cc64818b8b9f8977d
CRs-Fixed: 774533
2017-04-07 01:12:46 -07:00
Jeff Johnson
12a744bad0 qcacld-3.0: Add gEnableANI INI item
Per OEM request an INI item is needed to enable/disable the Adaptive
Noise Immunity feature, so add support for gEnableANI.

Change-Id: Ie6867c0024a716bf65dca1eeab8dd2b58141eff7
CRs-Fixed: 2028697
2017-04-07 01:12:45 -07:00
Sandeep Puligilla
ea24508070 Release 5.2.0.19R
Release 5.2.0.19R

Change-Id: If9d70f6ad3050886906c086565002772d4bc64fd
CRs-Fixed: 774533
2017-04-06 10:58:54 -07:00
Dustin Brown
8d2d0f57a5 qcacld-3.0: Expose WMI/Credit History debugging APIs via ioctl
Add an ioctl that allows a user to dump a specified number of records to
dmesg for WMI and Credit History.

Change-Id: I644dcf5edcb2f875af1e99e7b4677cde37081674
CRs-Fixed: 2028760
2017-04-06 10:58:54 -07:00
Sandeep Puligilla
22fa5f178e Release 5.2.0.19Q
Release 5.2.0.19Q

Change-Id: Ice55d14c5e414bf68665e87f80405341e84a3b7a
CRs-Fixed: 774533
2017-04-06 08:52:12 -07:00
Naveen Rawat
63de5421cc qcacld-3.0: Route NDP commands to UMAC's NAN component
Add framework to route NDP commands to UMAC's NAN component.

Change-Id: I0af1d537133eff8b9a78405b39d6ccaede60f341
CRs-Fixed: 2014795
2017-04-06 08:52:12 -07:00
Naveen Rawat
9750035be6 qcacld-3.0: Compile out legacy NDP code
Compile out legacy code when NAN_CONVERGENCE is enabled.

Change-Id: I47ac6842ad6b195e623d9de95702e6089031335d
CRs-Fixed: 2014795
2017-04-06 08:52:10 -07:00
Sandeep Puligilla
fd191c97eb Release 5.2.0.19P
Release 5.2.0.19P

Change-Id: Icd3b80b1ebfd70966654ac7c8c62dbd59d521586
CRs-Fixed: 774533
2017-04-06 05:32:15 -07:00
Mukul Sharma
24699bd2a8 qcacld-3.0: Avoid twice stop adapter/close adpater for pre cac
Currently, during del_virtual_iface if adapter is of type SAP
and cac is active, then host schedules a work which stop and
close adapter and in same context it again stop /close_Adapter.

As a part of this fix, avoid stop / close adapter if cac is
in progress.

Change-Id: I68a53b3b67f4a0222a35c15a3d4a9574dd3a9e90
CRs-Fixed: 2027509
2017-04-06 05:32:15 -07:00
Sandeep Puligilla
c33df9640c Release 5.2.0.19O
Release 5.2.0.19O

Change-Id: I3e24b96aabb32ef8c015250704cc21b63c07e4c5
CRs-Fixed: 774533
2017-04-06 02:33:22 -07:00
Srinivas Girigowda
fb20a95766 qcacld-3.0: Fix array out-of-bound access in hdd_update_mac_config()
Fix array out-of-bound access in hdd_update_mac_config().

Change-Id: I8cd143c0db033ede780df8a93650917db4ede82d
CRs-Fixed: 2029437
2017-04-06 02:33:21 -07:00
Sandeep Puligilla
bf7cbc5c3a Release 5.2.0.19N
Release 5.2.0.19N

Change-Id: I26255b3dbbb9c51b0616d4ae20b306be23e30138
CRs-Fixed: 774533
2017-04-05 05:21:52 -07:00
Himanshu Agarwal
69d8466003 qcacld-3.0: Handle failure scenario for qdf_nbuf_map()
Handle failure scenario for qdf_nbuf_map() by freeing
allocated memory, returning failure/error etc.

Change-Id: I94b2ebbffc230f87804ad37a1f0a16c5ffeadbea
CRs-Fixed: 2028534
2017-04-05 05:21:52 -07:00
Sandeep Puligilla
bd15ec3fca Release 5.2.0.19M
Release 5.2.0.19M

Change-Id: I983304255742d7ecf1d59b547801da7ecbbdb1e3
CRs-Fixed: 774533
2017-04-05 04:42:20 -07:00
Poddar, Siddarth
76ac7280c3 qcacld-3.0: Fix memory leak in htt_rx_attach
Rx buffer hash table memory is not freed in htt_rx_attach
when target index allocation fails.
Fix is to free memory in failure case.

CRs-Fixed: 2025050
Change-Id: Ibbe238dc7d2f6dc2c31fe94569c9aa744714e930
2017-04-05 04:42:19 -07:00
Sandeep Puligilla
40d7209d42 Release 5.2.0.19L
Release 5.2.0.19L

Change-Id: I17a4222d4aa8dc729a3e0f6e22260d722dc1962c
CRs-Fixed: 774533
2017-04-05 03:16:00 -07:00
Kapil Gupta
825f1ba5f2 qcacld-3.0: Add INI and IOCTL template for DFS feature
Add INI and IOCTL template for DFS feature for documentation.

CRs-Fixed: 1106837
Change-Id: I134b355717bbe057c56accd89aed8eed5d532e85
2017-04-05 03:16:00 -07:00
Sandeep Puligilla
838a424a42 Release 5.2.0.19K
Release 5.2.0.19K

Change-Id: Id0571ca250941c462c19109246ea79ac818f7f22
CRs-Fixed: 774533
2017-04-05 02:39:45 -07:00
Kapil Gupta
acb3dbd80b qcacld-3.0: replace IEEE80211_NUM_BAND by NUM_NL80211_BANDS
IEEE80211_NUM_BAND is not defined in newer kernels, Add changes
to replace IEEE80211_NUM_BAND by NUM_NL80211_BANDS.

CRs-Fixed: 2028465
Change-Id: Id811a434aa791f096ef4921db0f2ab8b42bc9f23
2017-04-05 02:39:45 -07:00
Sandeep Puligilla
faffb6443b Release 5.2.0.19J
Release 5.2.0.19J

Change-Id: I511aaf00af2829f3ca6242661dff1c0ed4b8c592
CRs-Fixed: 774533
2017-04-05 02:00:20 -07:00
Sandeep Puligilla
1cf6ebea36 qcacld-3.0: FTM fixes with new component model
In FTM mode pdev is getting created twice due to
two service ready events from the firmware beacause
of module stop and start.

Add logic to reuse the psoc/pdev for module stop and start.

Change-Id: Ib5a92020c3c01ccfa699167eef8d7a633a27db13
CRs-Fixed: 2029041
2017-04-05 00:39:44 -07:00
Sandeep Puligilla
2bfa11cffc Release 5.2.0.19I
Release 5.2.0.19I

Change-Id: I3debb177c658d73026912f0f9614b5afed19f0e4
CRs-Fixed: 774533
2017-04-05 00:36:04 -07:00
Yun Park
ec84530f25 qcacld-3.0: Change HDD_IPA_DBG_DUMP log level to DATAPATH_DEBUG
QXDM log shows HDD IPA packet dump from all the packets through
Rx exception path. Change the packet dump only for DATAPATH module
in debug level.
Fix compilation error when IPA_OFFLOAD not defined.

Change-Id: I2761c78bbe3e59e7d956d0e3df628d22e9bbe610
CRs-Fixed: 1102003
2017-04-05 00:36:04 -07:00
Sandeep Puligilla
75557a6a07 Release 5.2.0.19H
Release 5.2.0.19H

Change-Id: I484746bc092a2b6f5e86541154caa942a100d834
CRs-Fixed: 774533
2017-04-04 23:51:45 -07:00
Nitesh Shah
273e4e5649 qcacld-3.0: Teardown TDLS links before starting interface
If the TDLS links exists and SAP comes up, there is a chance
that the peer is created for SAP before deleting TDLS peers,
thus leading to crash.

The fix is to teardown the TDLS links before starting hostapd
or starting the association process to avoid TDLS in concurrency
case.

Change-Id: I06c0d4f8965d3a1e614e8bd89f2d6af0a504fa9e
CRs-Fixed: 2027831
2017-04-04 23:51:45 -07:00
Sandeep Puligilla
af6a832777 Release 5.2.0.19G
Release 5.2.0.19G

Change-Id: I3425db6ff26ca6fda7be1cd742c2bb05d794a35b
CRs-Fixed: 774533
2017-04-04 22:18:14 -07:00
Ashish Kumar Dhanotiya
bb22e0dad5 qcacld-3.0: Compilation issue while updating the cds config
There is a comparison between constant and boolean inside
update cds config api which will always fail.
To address this issue change the type of variable from boolean to
uint8_t.

Change-Id: I7ba4d9fedd148d713af334b394757da2a496f5a5
CRs-Fixed: 2027402
2017-04-04 22:18:13 -07:00
Sandeep Puligilla
bd776f688a Release 5.2.0.19F
Release 5.2.0.19F

Change-Id: I113620e71850fd9077c84c137cb9b503b570b73b
CRs-Fixed: 774533
2017-04-04 21:38:42 -07:00
Houston Hoffman
02d1e8e7ce qcacld-3.0: update dump_tx_desc
The dump_tx_desc function is called to report the number of freed and used
tx descriptors when a suspend is rejected by data path.  The debug code
was directly referencing a data field whereas the code to check the freed
and used descriptors used a function that reports a different number under
certain compilation flags.  Use the function in the debug statement such that
the value checked is the value printed.

Change-Id: Iad3f519dc88319c7a421f77376dd43e15e6eaf09
CRs-Fixed: 1113880
2017-04-04 21:38:42 -07:00
Sandeep Puligilla
f1131a6f8e Release 5.2.0.19E
Release 5.2.0.19E

Change-Id: I516d2368d25eb1b5b847c4e8d102bd05256019e9
CRs-Fixed: 774533
2017-04-04 19:28:01 -07:00
Srinivas Girigowda
eda9c1ea69 qcacld-3.0: Use bitwise instead of logical operator for these constants
Several constants in rrm_global.h use logical || where a bitwise | was
probably intended.  clang warns about this.

Hence, use bitwise operator instead of logical operator.

Change-Id: I5a0543096e7f213f3d60f3eda03eb7765595a364
CRs-Fixed: 2028989
2017-04-04 19:28:01 -07:00
Sandeep Puligilla
40b8ec2cd9 Release 5.2.0.19D
Release 5.2.0.19D

Change-Id: Ice3bbb4ca030e10713c221720f47ce3d497867a2
CRs-Fixed: 774533
2017-04-04 18:41:45 -07:00
Yue Ma
6e7b1a0331 qcacld-3.0: Increase driver probe timeout for Napier emulation
In Napier emulation, due to the FPGA slowness and the need from
firmware side to live debug issues during driver load, increase
driver probe timeout accordingly.

Change-Id: I7e435082cebabe9ec6d15dc5c11a73b7db84f19b
CRs-fixed: 2028294
2017-04-04 18:41:45 -07:00
Sandeep Puligilla
e830f8da17 Release 5.2.0.19C
Release 5.2.0.19C

Change-Id: I5e70785d042c324fcca30478ff4428b25f895556
CRs-Fixed: 774533
2017-04-04 15:36:36 -07:00
Rajeev Kumar
3fef4e875d qcacld-3.0: Handle module stop properly for FTM mode
In FTM mode con mode change handler does module stop
after holding SSR protect and module stop bails
out assuming its idle mode module stop. Make sure to
do module stop properly for FTM mode even if SSR
protect lock is taken by con mode change handler.

Change-Id: I5d2d7006bb9f4897a5dd22893cdf6a7a864de97b
CRs-Fixed: 2027020
2017-04-04 15:36:35 -07:00
Dustin Brown
7011182571 qcacld-3.0: Prevent getting stuck in SSR with external thread
During driver recovery, following a crash in firmware, there is a
chance to get stuck waiting for the MC thread to exit after it has
already done so. This is due to an external thread being active in the
driver when it should not be possible. Improve logging in such cases
to find out which thread is running, and skip waiting for MC thread
shutdown if it is already stopped to prevent getting hung.

Change-Id: I53ddc3afb8561ecd2d6b708b6488c503068c49a6
CRs-Fixed: 2027020
2017-04-04 15:36:34 -07:00
Sandeep Puligilla
c0d671d12e Release 5.2.0.19B
Release 5.2.0.19B

Change-Id: Ic2cbb835a17f2626fc32cde0b0162a67bb2ad8ec
CRs-Fixed: 774533
2017-04-04 00:35:06 -07:00
Himanshu Agarwal
d6f3c5a3be qcacld-3.0: Sync pool status with netif queue status
When flow pool is created, pool status is set to FLOW_POOL_ACTIVE_UNPAUSED
irrespective of whether netif queues are paused or not.
Also, when descriptors are transferred from invalid pool to deficient pool,
pool status is not checked. So, if deficient pool is paused, then even
after receiving required descriptors from invalid pool, its status and
netif queues will still remain paused due to which traffic will not be able
to resume ever.

Sync pool status with netif queue status by:
1) Unpausing netif queues as well when pool is created.
2) If deficient pool is paused and on receiving descriptors from invalid
   pool, no. of descriptors goes beyond start threshold, unpause the
   queues and set the pool status to FLOW_POOL_ACTIVE_UNPAUSED.

Change-Id: I69390e40130892d218372e4a8a0ab4b0c7b94b7e
CRs-Fixed: 2025759
2017-04-04 00:35:05 -07:00
Sandeep Puligilla
b103a689c8 Release 5.2.0.19A
Release 5.2.0.19A

Change-Id: I7110681e93161601d9db5afcd08308e40820ea65
CRs-Fixed: 774533
2017-04-03 18:41:25 -07:00
Arif Hussain
759a023602 qcacld-3.0: Add cac and phyerr processing offload support
In case of dfs offload, do not run cac timer, as cac will also be
offloaded in that case. Decide the same based of service bit info.

Change-Id: If4dd62628270ff0ba8632a9cd644a9d7ed6f31a4
CRs-Fixed: 2021357
2017-04-03 18:41:24 -07:00
Arif Hussain
671a190aa9 qcacld-3.0: Add cac duration and dfs region in vdev start
Add support to fill cac duration and dfs region in  vdev
start command, these values are used in firmware on phyerror
processing and cac timer offload cases.

Change-Id: I8bfbd4a3f59002f92ee2e5e321c15da849fce9ec
CRs-Fixed: 2021357
2017-04-03 18:41:22 -07:00
Sandeep Puligilla
88fbdb4f90 Release 5.2.0.19
Release 5.2.0.19

Change-Id: Ibe835d99f12ac40b44d79c1f20830a9f8ee275f3
CRs-Fixed: 774533
2017-04-03 15:25:27 -07:00
Dustin Brown
5ec6b5598e qcacld-3.0: Stop bandwidth timer before adapter cleanup
There is race condition between the bus bandwidth work and cleaning up
an adapter. Under some conditions, it is possible for the bus bandwidth
work to access a paritally destroyed adapter, leading to a
use-after-free. To prevent the race condition, use the following
sequence:
    1) Stop the bandwidth timer
    2) Flush pending bandwidth work
    3) Cleanup the adapter
    4) Restart the bandwidth timer, if needed

Change-Id: I7166e75e65433d2dcb818ff8b41fe959c510a2e9
CRs-Fixed: 2025184
2017-04-03 15:25:26 -07:00
Sandeep Puligilla
14a8e0312e Release 5.2.0.18Z
Release 5.2.0.18Z

Change-Id: I6dfc6094ed77e41c6606a32fc63dd5232e7914e9
CRs-Fixed: 774533
2017-04-03 12:40:55 -07:00
Jeff Johnson
17d62673a9 qcacld-3.0: Fix HDD Bus suspend/resume API issues
While implementing the fix for "qcacld-3.0: Fix wlan_hdd_driver_ops
kernel-doc" it was observed that the kernel-doc for functions
wlan_hdd_bus_suspend() and wlan_hdd_bus_resume() did not match the
function signatures. Update the kernel-doc to match the actual code,
and in the case of wlan_hdd_bus_suspend() update one call in
hdd_enable_ext_wow() to align with the real interface instead of the
previously documented interface.

Change-Id: I6f25c954f5328a029fadeceadc23cfc242de6bf7
CRs-Fixed: 2025169
2017-04-03 12:40:54 -07:00
Jeff Johnson
cb6b3bbe7e qcacld-3.0: Fix wlan_hdd_driver_ops kernel-doc
Currently not all of the wlan_hdd_driver_ops public APIs have their
documentation in the interface (header) file. Update the files so that
the public interface, not the implementation, is documented.

Change-Id: I68a809c9bc2a844232a0f5d07086f924f8ce1ace
CRs-Fixed: 2024274
2017-04-03 12:40:53 -07:00
Jeff Johnson
10251bc9d1 qcacld-3.0: Fix checkpatch issues in wlan_hdd_driver_ops
The kernel checkpatch script has detected some issues in
wlan_hdd_driver_ops.h and wlan_hdd_driver_ops.c, so fix them.

Change-Id: I1b08d9dd5147eeebeba2f545d7530bdff6867a5e
CRs-Fixed: 2024274
2017-04-03 12:40:51 -07:00
Sandeep Puligilla
8004facf8f Release 5.2.0.18Y
Release 5.2.0.18Y

Change-Id: I4b510a594ad1f5c63cc1f2c419709672a99dbd79
CRs-Fixed: 774533
2017-04-03 00:58:41 -07:00
yeshwanth sriram guntuka
8fa6fa3042 qcacld-3.0: Remove addts and delts command on roam sync ind
When DUT receives roam sync ind, addts and delts commands
needs to be removed as part of csr_roam_sync_callback,
Otherwise these commands will be active SME commands forever
as PE wont send resp as older PE session is deleted as part
of RSI indication.

Fix is to remove addts and delts command on roam sync ind.

Change-Id: I1df8416a76dff3899c146823bec04595877788f7
CRs-Fixed: 2023723
2017-04-03 00:58:40 -07:00
Sandeep Puligilla
8907355fd4 Release 5.2.0.18X
Release 5.2.0.18X

Change-Id: I7c629886a28c4bbc26d5da11e86ce9120cef9bcf
CRs-Fixed: 774533
2017-03-31 23:57:45 -07:00
Srinivas Girigowda
051a9b4885 qcacld-3.0: Fix user space accesses
This is a qcacld-2.0 to qcacld-3.0 propagation.

Don't access user space memory directly in
drv_cmd_get_ibss_peer_info_all.

Change-Id: I36a706e2e91d1ed2a43897ac2eef9d81b2de7335
CRs-Fixed: 2022841
2017-03-31 23:57:44 -07:00
Srinivas Girigowda
f10a42e811 qcacld-3.0: Fix the variable uninitialized compile error
This is a qcacld-2.0 to qcacld-3.0 propagation.

Fix the variable uninitialized compile error.

Change-Id: I941d76a75a52b4cc6bd3de831b04f960f506f802
CRs-Fixed: 2022835
2017-03-31 23:57:41 -07:00
Srinivas Girigowda
d1b925870d qcacld-3.0: Do range check only if ini value is set from the file
For some of the configurations, the default is not one of the
in-range values because we want to detect if the value has been
set or not.

Hence, do the range check when a value is present in the cfg.ini.

Change-Id: I4db722ed5053e2248dc23c7417d192fe6093ee46
CRs-Fixed: 2014145
2017-03-31 23:57:39 -07:00
Srinivas Girigowda
70e169a798 qcacld-3.0: Add cfg.ini support to override ARP Access category
This is a qcacld-2.0 to qcacld-3.0 propagation.

Firmware currently sets the default access category to ARP packets
as voice traffic id and host does not have a way to override this.

As a part of this change, add the cfg.ini support to override this
default access category.

Change-Id: I268cb9c0254d14f143615790c570ac5a255b359d
CRs-Fixed: 1111993
2017-03-31 23:57:36 -07:00
Srinivas Girigowda
28c776bad9 qcacld-3.0: Add counter for number of times scan was rejected due to -EBUSY
This is a qcacld-2.0 to qcacld-3.0 propagation.

The counter is incremented and logged for each -EBUSY and reset when
scan request is successfully accepted.
It should help us debug cases where the recovery timeout logic
isn't working well or is too slow to react.

Change-Id: I9dd4384cec2a6aefb56e97c1d871c2d2a4819bf6
CRs-Fixed: 1113120
2017-03-31 23:57:33 -07:00
SaidiReddy Yenuga
c3a74ba015 qcacld-3.0: Acquire lock to protect hdd_ctx in hdd_driver_memdump_read()
qcacld-2.0 to qcacld-3.0 propagation.

Two threads accessing the procfs entry might end up in race condition and
lead to use-after-free for hdd_ctx->driver_dump_mem.

Hence, acquire a lock to protect hdd_ctx.

Change-Id: If871f4ceadf650978e16b4a336f688a0dae1c494
CRs-Fixed: 2005832
2017-03-31 23:57:30 -07:00
Sandeep Puligilla
0a5bc614f9 Release 5.2.0.18W
Release 5.2.0.18W

Change-Id: I2ba963c9c0e1868ac6daf359791e6165a4380ce1
CRs-Fixed: 774533
2017-03-31 23:18:23 -07:00
Abhishek Singh
e9068f1690 qcacld-3.0: Fix psoc's use after psoc destroy
psoc is allocated during start module and destroy in stop modules.
due to this if psoc is used after stop modules it cause crash.
psoc should be the first thing to get allocated and last thing
to get destroyed.

Fix it by calling psoc destroy at the ned of the wlan exit and
allocating in wlan start.

Change-Id: I969a5688751ddfad9ab9c3152e6af0680d2be605
CRs-Fixed: 2027351
2017-03-31 23:18:23 -07:00
Sandeep Puligilla
752281eef7 Release 5.2.0.18V
Release 5.2.0.18V

Change-Id: Iebf68f71ec7da3db1d795117ba240452bf144c5b
CRs-Fixed: 774533
2017-03-31 22:37:22 -07:00
Krishna Kumaar Natarajan
d1cd56e731 qcacld-3.0: [11AX] Add support to update HE MCS
Add support to update HE MCS. lim_populate_he_mcs_set() is added to
take care of populating the rates and MCS values.

Change-Id: I12c0ab95cc566c906f1707010dfb2ef3ec4fa681
CRs-Fixed: 1073481
2017-03-31 22:37:21 -07:00
Sandeep Puligilla
e21b131573 Release 5.2.0.18U
Release 5.2.0.18U

Change-Id: I875fdcfbddb1db53172f85da351c00b6d96121a7
CRs-Fixed: 774533
2017-03-31 21:57:55 -07:00
Srinivas Girigowda
e6b465b3c2 qcacld-3.0: Add zero to the end of the buffer
when wlan_mac.bin doesn’t end with ‘\0’,
get_next_line() can access the unexpected area.

Fix this by adding 0 to the end of the buffer.

Change-Id: I01971aa5ad9679338a19e837f73969367d5b08f8
CRs-Fixed: 2026925
2017-03-31 21:57:55 -07:00
Sandeep Puligilla
0c1b59479d Release 5.2.0.18T
Release 5.2.0.18T

Change-Id: I490e4dae3fc59ac905d41c45954e09d8344461fa
CRs-Fixed: 774533
2017-03-31 21:18:13 -07:00
Yue Ma
b14663f00a qcacld-3.0: Fix compilation errors for runtime PM feature
Fix compilation errors in order to enable to compile runtime PM
feature.

Change-Id: Ie15fa5ae1ef06c27658e5b38af0e832076e3d920
CRs-fixed: 2023358
2017-03-31 21:18:11 -07:00
Sandeep Puligilla
4710ac391e Release 5.2.0.18S
Release 5.2.0.18S

Change-Id: I7ec4320ca5926737b6f9a50bf76c440c7b30bc8d
CRs-Fixed: 774533
2017-03-31 20:39:41 -07:00
Archana Ramachandran
c1a03a099f qcacld-3.0: Fix incorrect TX status reported to supplicant for p2p action frames
During p2p negotiation/invitation if the TX status for the actions frames
are reported success when they actually failed, the supplicant will
not retransmit the failed frames. It will move on to the next action
frame in the protocol. This would lead to GO Negotiation failure.

CRs-Fixed: 1112657
Change-Id: I9b462524793d8ced5ae86de75e085458070e6513
2017-03-31 20:39:40 -07:00
Sandeep Puligilla
547824cf71 Release 5.2.0.18R
Release 5.2.0.18R

Change-Id: I32fc6ae9565321fe1a3c7e5c4d753c4e57abe12f
CRs-Fixed: 774533
2017-03-31 16:07:58 -07:00
Krishna Kumaar Natarajan
fa482f5e8b qcacld-3.0: Update correct check while unpacking PPE threshold
Update correct check while unpacking PPE threshold. Incorrect
placement of parentheses may lead to unexpected behavor.

Change-Id: If1af2ab7a0601e4a25183cb8fbaf0dfd99e9bf58
CRs-Fixed: 1073481
2017-03-31 16:07:57 -07:00
Krishna Kumaar Natarajan
b3a8f6289e qcacld-3.0: Update HE ops correctly in vdev start request
Update HE ops correctly in vdev start request. Currently the update
is done in a local copy and is not updating the vdev start request.
Fix is to copy the local he ops value into vdev start request.

Change-Id: Ife5b40a8df3d6a47c2f170efdb7aae009bb8be95
CRs-Fixed: 1073481
2017-03-31 16:07:55 -07:00
Sandeep Puligilla
9a6e885a1b Release 5.2.0.18Q
Release 5.2.0.18Q

Change-Id: Ia1a60977dfec225bdebd6c31b7c3d323095dcea9
CRs-Fixed: 774533
2017-03-31 10:01:58 -07:00
Himanshu Agarwal
df9c8ac2d7 qcacld-3.0: Decrement peer ref cnt incremented while getting peer
Decrement the peer ref cnt incremented while getting peer through
wlan_objmgr_get_peer() to pass it to wlan_mgmt_txrx_mgmt_frame_tx().

Change-Id: I2791075d63610d76fa1c70d3efe76df2b2618b01
CRs-Fixed: 2025052
2017-03-31 10:01:57 -07:00
Sandeep Puligilla
8e1bae1852 Release 5.2.0.18P
Release 5.2.0.18P

Change-Id: I7cb1d6884c2d6051bdd371827f6d010e2015d7b0
CRs-Fixed: 774533
2017-03-31 05:16:05 -07:00
Nitesh Shah
0bf768fe16 qcacld-3.0: Unlock tdls mutex properly in few instances
TDLS mutex is not unlocked properly in few error instances.
Thus, the thread gets stuck.

The fix is to unlock mutex properly before returning.

Change-Id: Ic16015e568dd91af17b3bb1ba9b19722cb0f82d9
CRs-Fixed: 2026737
2017-03-31 15:33:38 +05:30
Sandeep Puligilla
696f16eaba Release 5.2.0.18O
Release 5.2.0.18O

Change-Id: I2325422739ff4dc8b6d101d5a5de4fd97d8b58d4
CRs-Fixed: 774533
2017-03-30 16:27:05 -07:00