Commit Graph

4889 Commits

Author SHA1 Message Date
Arif Hussain
e478b4d0be qcacld-3.0: reset dfs_cac_block_tx as soon after start bss event received
Make sure to first reset dfs_cac_block_tx (if operating channel is not
dfs) as soon as start bss event received. It is observed that in some
cases further processing of start bss event in hdd_hostapd_sap_event_cb
is failed and dfs_cac_block_tx flag remain set, because of this all the
tx packets from network layer are blocked. SAP continue to beacon but
peer stations failed to connect as SAP is blocked to transmit dhcp or
other data packets from network stack.

Change-Id: I045e38d6b826d2de64520fe9063e6123bc6650e6
CRs-Fixed: 2026958
2017-06-02 13:41:17 -07:00
snandini
cfa0054117 Release 5.2.0.27S
Release 5.2.0.27S

Change-Id: Ibc767ddb68989e7d128010e596aaf08c6f2be307
CRs-Fixed: 774533
2017-06-01 21:21:22 -07:00
Arif Hussain
43354e663f qcacld-3.0: Handle user-space roaming failure case
Supplicant uses connect command to send roam request and
also starts auth timer. On failing to receive assoc success
from driver, supplicant will send disconnect indication to
the driver after auth timeout which is 10 sec.

So, currently supplicant does not allow to stay with current AP
if roam invoke fails.

On roam invoke failure, indicate this failure to supplicant
and send death to current AP for driver and firmware cleanup,
So that we can avoid 10sec auth-timer delay.

Change-Id: Ie010a55b9b7a6563c817b17815d004f7b8bfa2fa
CRs-Fixed: 2044156
2017-06-01 21:21:21 -07:00
Arif Hussain
72edc5955a qcacld-3.0: Fix cac duration issue with weather channel
Make sure to update cac duration correctly if any of the
bonded channel is weather channel.

Change-Id: If96654427abd32757a592a1e89113c185127f221
CRs-Fixed: 2034640
2017-06-01 21:21:20 -07:00
Arif Hussain
b7eb4aff37 qcacld-3.0: Fix memory leak in mac_open
Make sure to free cfg resource in allocated during
cfg_init when case of pe_open failure happen.

Change-Id: I651585dabec344253fb3015d974f9f4685d24304
CRs-Fixed: 2027588
2017-06-01 21:21:19 -07:00
Arif Hussain
ae99ff0b8a qcacld-3.0: Cleanup in mac_open to avoid freeing p_mac
In “Change-Id: I3638b576b76c26181cb180d8b37e195ba3b0ecad”
replaced dynamic allocation of p_mac to used memory from
.bss segment, So do not free p_mac.

Change-Id: I2aab77871b8b96de65d7732a001934586df635d0
CRs-Fixed: 2026241
2017-06-01 21:21:17 -07:00
Arif Hussain
7168379ca5 qcacld-3.0: Change dynamic memory to static from .bss segment for p_mac
Size of global context handler p_mac is too big to allocate memory
and more possibility of failing memory allocation of this big size.

So use mac global context from .bss segment by using global static
variable.

Change-Id: I3638b576b76c26181cb180d8b37e195ba3b0ecad
CRs-Fixed: 2011049
2017-06-01 21:21:16 -07:00
snandini
8dbf8bd4ab Release 5.2.0.27R
Release 5.2.0.27R

Change-Id: Ifc70a1028e295baf4ad367cb34d2c5be5f3138a6
CRs-Fixed: 774533
2017-06-01 19:55:34 -07:00
Paul Zhang
d2315479ae qcacld-3.0: Set burst duration when using short BI
qcacld-2.0 to qcacld-3.0 propagation

When the DUT connects to an AP whose BI is short, for
example 25ms. Per the fw scan schedule mechanism, the
TBTT scan has high priority. Then the scan issued by
host will be timeout.

To mitigate this issue, enable the burst scan feature
by setting the burst scan duration.

Change-Id: Id28e9d1ec242c205481fb3b7242134b0dae78834
CRs-Fixed: 1109279
2017-06-01 19:55:33 -07:00
snandini
b9b95af516 Release 5.2.0.27Q
Release 5.2.0.27Q

Change-Id: I0d12fa89c6f946b785a7cecefa8fa07256a12dcb
CRs-Fixed: 774533
2017-06-01 16:01:10 -07:00
Manikandan Mohan
39accff49b qcacld-3.0: Add INI item for 11AX HE params and configure on BSS start
Add INI params for 11AX HE OBSS_PD. Update code to set
these params on BSS start on station connection and SAP start.

Change-Id: I60ae2cae936558668dfb1059744a6e3891aaebd1
CRs-fixed: 2045431
2017-06-01 16:01:09 -07:00
snandini
5822f22e66 Release 5.2.0.27P
Release 5.2.0.27P

Change-Id: I84e9b2e8e7ef5ce3980ac0def65b483c7696c496
CRs-Fixed: 774533
2017-06-01 12:32:30 -07:00
Varun Reddy Yeturu
e5476a908c qcacld-3.0: Fix the invalid SNR value in Host
Propagation from cld3.0-1.1 to cld3.0-2.0

Firmware sends a value of 0x127 or -1 to represent
an invalid SNR to the host. Handle it in the host
for both the values

Change-Id: I374c626566cd5b7d67aaca43167f9fe4bd4b85a2
CRs-Fixed: 1105132
2017-06-01 12:32:29 -07:00
Dustin Brown
2078eddc00 qcacld-3.0: Change gHwFilterMode default to 1
gHwFilterMode was mistakenly defaulted to 0. Change the default value
for gHwFilterMode to 1, to match the previous non-arp-bcast-filter
semantics.

Change-Id: I2b22c253fae52ef500290dea63699633da82fd06
CRs-Fixed: 2044102
2017-06-01 12:32:28 -07:00
Dustin Brown
1224e21a8f qcacld-3.0: Add gHwFilterMode ini item
Add a 'gHwFilterMode' ini item to control the DTIM mode hardware
filter. This ini item supersedes 'g_enable_non_arp_bc_hw_filter.'

	# disable feature (default)
	gHwFilterMode=0
	# drop all broadcast frames, except ARP
	gHwFilterMode=1
	# drop all multicast frames, except ICMPv6
	gHwFilterMode=2
	# drop all broadcast and multicast frames, except ARP and ICMPv6
	gHwFilterMode=3

Change-Id: I6bc8ac7585ffd0a62ab1c57558a798df9b63f2ce
CRs-Fixed: 2040420
2017-06-01 12:32:27 -07:00
snandini
2d2eefb3c4 Release 5.2.0.27O
Release 5.2.0.27O

Change-Id: I46fcab22fa808e552d5c88ad3e6ea4676606af83
CRs-Fixed: 774533
2017-06-01 07:21:48 -07:00
Himanshu Agarwal
8e89ce70f0 qcacld-3.0: Record ol rx indication events
Record ol rx indication events in a global ol rx indication record
buffer to have history of msdus received, no. of buffers replenished,
etc. in rx indication messages.

Change-Id: I96cf27a209c81208c6f6566b5e57116b2cf233e8
CRs-Fixed: 2012485
2017-06-01 07:21:48 -07:00
snandini
0e3fb46900 Release 5.2.0.27N
Release 5.2.0.27N

Change-Id: I8f4343e45c8c185470a84340d4920836dac3202b
CRs-Fixed: 774533
2017-06-01 06:06:49 -07:00
yeshwanth sriram guntuka
4c9a66989c qcacld-3.0: Remove unused concurrency ini parameters
Remove unused concurrency ini parameters used to
configure number of channels combined for each split
scan operation.

Change-Id: I913b6e769f282a0f5a0ddb40e54d294ae07deb55
CRs-Fixed: 2013444
2017-06-01 06:06:49 -07:00
Sandeep Puligilla
1e6da364dc qcacld-3.0: Don't allow change iface during ACS
Change iface is trying to open session before
closing the previous session when ACS is in progress.
This is causing assert in firmware due to duplicate
vdev with same mac address.

Send failure response to userspace when ACS is in
progress.

Change-Id: Ib49931c60935723c503b60334b7f299caf98f5b0
CRs-Fixed: 2030851
2017-06-01 06:06:47 -07:00
Sandeep Puligilla
68726b6c73 qcacld-3.0: Fix memory corruption in CSR
Freed scan list is accessed in CSR.

Don't free the memory when the scan list contains
zero entries.

Change-Id: Ia3bd1193288781ea15a2eab2e0a0ffd24b4d03f7
CRs-Fixed: 2052399
2017-06-01 06:06:46 -07:00
snandini
89f7e39781 Release 5.2.0.27M
Release 5.2.0.27M

Change-Id: I14e53361a9665d7a4c9eae542e2291c4ada58243
CRs-Fixed: 774533
2017-05-31 23:38:14 -07:00
Govind Singh
9785416998 qcacld-3.0: Handle HTT DATA2/DATA3 connect service failure
Handle error case if DATA2/DATA3 htt service connection
with fw fails.
DATA2/DATA3 connect service is done after FW ready indication.
Hence it's safe to handle the error scenarios.

Change-Id: If6f07f3c29cbc5f1486231a7897d1223ad1c24bb
CRs-Fixed: 2034843
2017-05-31 23:38:13 -07:00
Abhishek Singh
3df7661cc1 qcacld-3.0: Dont send add peer before peer is deleted in firmware
When IBSS peer is deleted, host send peer delete to firmware
and continue with delete in host. In this case we may hit the
situation that peer is not deleted in firmware and host tries to
add the peer again.

To fix this wait for peer delete resp before proceeding with host
cleanup

Change-Id: I500e4c4a840156295aa00125643f87e23b5168b8
CRs-Fixed: 2047244
2017-05-31 23:38:12 -07:00
Sandeep Puligilla
1954af2dea qcacld-3.0: Increase SSID array size
- Increase SSID variable array size while
handling scan for ssid.
- Cleanup scan for ssid API. Remove
legacy scan code.

Change-Id: Ia3a1a9dfc61e3453c1277742155d4572f28fb1a5
CRs-Fixed: 2054232
2017-05-31 23:38:11 -07:00
Paul Zhang
42dade0dd8 qcacld-3.0: Associate in 1x1 when connected to a certain Vendor AP
When connected to a certain Vendor AP that cannot handle SMPS frame, only
connect in 1x1.

Change-Id: Ieae25191df8340a582e81dc716b9a1aee6a71921
CRs-Fixed: 2047347
2017-05-31 23:38:09 -07:00
Naveen Rawat
b2fc41317f qcacld-3.0: Introduce ini param for forcing 1x1 for certain peer
For a certain Vendor OUI this ini param allows STA connection in 1x1
only. This is needed to resolve IOT issue.

Change-Id: If4ff4ece3c4bd1c4b85ebfd5c4870b27efbbe475
CRs-Fixed: 2047347
2017-05-31 23:38:08 -07:00
snandini
2c13e6b5f5 Release 5.2.0.27L
Release 5.2.0.27L

Change-Id: I97af5eb43af16b3b598450e0a0dfc67d1bb7785d
CRs-Fixed: 774533
2017-05-31 18:41:15 -07:00
Yue Ma
d5b4b9f267 qcacld-3.0: Delete peers during SSR for STA and P2P client modes
Peers have to be deleted to avoid leaking for STA and P2P client modes
during SSR.

Change-Id: I4ac88cc64f4ff36e0441f92affee6fdb674e3a6e
CRs-fixed: 2021415
2017-05-31 18:41:14 -07:00
snandini
26cb30f9a3 Release 5.2.0.27K
Release 5.2.0.27K

Change-Id: I5e057806d3193f417ce25e56dbe661f973450d4a
CRs-Fixed: 774533
2017-05-31 17:57:13 -07:00
Padma, Santhosh Kumar
9397bc1c24 qcacld-3.0: Avoid switch channel during preauth
qcacld-2.0 to qcacld-3.0 propagation

Currently data tx is suspended and later checked for preauth
in limProcessChannelSwitchTimeout. This can result in a condition
that data tx to be always in suspend case if roaming triggers at
the same time.

Fix is to add a check for preauth during channel switch.

Change-Id: I0ac3d63a5db000beed7de34b13e5926c7dc3ce48
CRs-Fixed: 2035031
2017-05-31 17:57:12 -07:00
Padma, Santhosh Kumar
19f5765793 qcacld-3.0: Update dot11mode properly for roamable AP
qcacld-2.0 to qcacld-3.0 propagation

Currently dot11mode is not updated properly for roamable AP. This can
result in incorrect data rates. Update dot11mode to fix this.

Change-Id: I644f685fc2c0e041b308017ed3206d56c9c57fe9
CRs-Fixed: 2053478
2017-05-31 17:57:10 -07:00
snandini
9a7de14bcf Release 5.2.0.27J
Release 5.2.0.27J

Change-Id: I9a215818c78752000291af94781fc5c523a1cd0a
CRs-Fixed: 774533
2017-05-31 02:59:34 -07:00
Kiran Kumar Lokere
80d3e1a052 qcacld-3.0: Set peer NW type as 11b if OFDM rates not present
If peer is not ht/vht capable and if OFDM rates are not supported
by peer then set the peer type as 11B to configure the correct peer
phy mode to FW.

Change-Id: I3115541a6fb51c78bf29a6473460dfb17bf9be51
CRs-Fixed: 2053227
2017-05-31 02:59:26 -07:00
Naveen Rawat
73532d61bf qcacld-3.0: Reduce logging level of dropped packets
Function wma_mgmt_rx_process will drop packets when recovery is in
progress and when load/unload is in progress. During these events
if host receieves a lot of packets it might lead to WD bite. To fix
this reduce log level of "Recovery in progress" and "Load/Unload in
progress" in this function.

Change-Id: Ic926e23fe14dd3f670dd9269519866095d51539a
CRs-Fixed: 2049811
2017-05-31 02:59:20 -07:00
Kapil Gupta
9890619d29 qcacld-3.0: Drop assoc request if RSNIE/WPAIE parsing fail
Add changes to drop assoc request and return error if RSNIE or
WPAIE parsing fail during parsing of assoc request.

CRs-Fixed: 2046578
Change-Id: I88d779399c2eba5d33c30144bf9600a1f3a00b77
2017-05-31 02:59:14 -07:00
snandini
49e131e4a5 Release 5.2.0.27I
Release 5.2.0.27I

Change-Id: Ib5275cebf0640a6a59ff70604d2407bfd24679bf
CRs-Fixed: 774533
2017-05-31 01:03:23 -07:00
snandini
0a32bdb545 Release 5.2.0.27H
Release 5.2.0.27H

Change-Id: I887b9e89d0f22ae4f7c9d09cc0ec7cb977e6a3f4
CRs-Fixed: 774533
2017-05-30 23:28:37 -07:00
Abhishek Singh
44b271fbfb qcacld-3.0: Always set SU bformee capability in assoc req
If SU beamformee is not set in assoc req when AP is not SU beamformer
low throughput is seen with specific AP.

To fix this, always set SU bformee capability in assoc request
depending on ini value.

Change-Id: If1279cf10b45d9e8900dc2eb5021a4603537aaee
CRs-Fixed: 2050951
2017-05-30 23:28:32 -07:00
Ashish Kumar Dhanotiya
32f63aae84 qcacld-3.0: Fix SAP beaconing failure after SSR/PDR
Remove the check for recovery in progress in wma_fill_hold_req
and wma_fill_vdev_req.

Currently Re-initialization of the SAP after SSR happens with
the recovery_in_progress flag set, so in wma_fill_hold_req and
wma_fill_vdev_req APIs we need to remove the check for this flag.

Change-Id: Id6c875936a9f0dddeacc89c24203eaa3c7f72d67
CRs-Fixed: 2047286
2017-05-30 23:28:25 -07:00
Abhishek Singh
c614ec428e qcacld-3.0: Call calbacks for hold req while removing it from queue
During SSR the hold req is not removed from queue and if HDD is
waiting for the response from WMA/FW, the HDD may timeout and due
to this shutdown ack is not sent to modem which results in modem
crash.

To avoid this, remove hold req from queue during ssr and call
their calback when SSR is in progress.

Change-Id: I462726c524cb15ff9aa88b051467f038ab1f4e67
CRs-Fixed: 2038200
2017-05-30 23:28:17 -07:00
Abhishek Singh
e8be9a6950 qcacld-3.0: Wait for peer delete in case of del bss
In case of join failure during auth and assoc phase scenario
join response is sent to umac before peer delete response is
received from firmware.

Defer the join response till the peer delete response
is received from firmware.

Change-Id: I380b969d76f4b86508c0523bf7879d8504a5f207
CRs-Fixed: 2036890
2017-05-30 23:28:11 -07:00
Sandeep Puligilla
bbee817b3a qcacld-3.0: Wait for peer delete in vdev stop handler
In failure scenario join response sent to umac before
peer delete response is received from firmware.

Defer the join response till the peer delete response
is received from firmware.

Change-Id: Icac97e0ed0e374bdd7f7d50e357af8f88b519f4d
CRs-Fixed: 2030841
2017-05-30 23:28:05 -07:00
Sandeep Puligilla
7da8633ac4 qcacld-3.0: Add vdev stop response for set link
As part of join request failure scenario, lim sets
the link state to eSIR_LINK_DOWN_STATE and WMA sends
vdev stop to firmware but firmware also expects
vdev down.

Added vdev down message handling in vdev stop
response handler and generation of WMA set link
response also moved to moved vdev response handler.

Change-Id: Ib5229c43677c36c1abc51a53f5ab44a666d0ab4d
CRs-Fixed: 1088356
2017-05-30 23:27:58 -07:00
snandini
5ac251fd6a Release 5.2.0.27G
Release 5.2.0.27G

Change-Id: I7242e8683928651f5ecf89a47b6a41bcbab4d9c7
CRs-Fixed: 774533
2017-05-30 22:01:22 -07:00
Ajit Pal Singh
bf65e5a126 qcacld-3.0: Always enable AVOID_FREQUENCIES NL event
Since AVOID_FREQUENCIES event might be needed even when
FEATURE_WLAN_CH_AVOID is disabled,
always enable QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX in the
cfg80211 event list.
Also function wlan_hdd_send_avoid_freq_event() which is used to send
AVOID_FREQUENCIES event to user-space is always compiled in.

Change-Id: Ied011c309b38fa43e847eb125728e681df4ceca4
CRs-Fixed: 2045120
2017-05-30 22:01:21 -07:00
Manikandan Mohan
fb9d2b5b34 qcacld-3.0: Use CDP API to configure interrupt
Use CDP API to configure the interrupt in cds open / close.
CDP API is mainly introduced to call detach interrupt before HTC
stop in cds close routine. This avoids race condition on interrupt
trigger.

Change-Id: Ib9a8e4014ad0bb5e3d1a691121c1069faa8c91e8
CRs-fixed: 2046062
2017-05-30 22:01:20 -07:00
snandini
407a6ffa49 Release 5.2.0.27F
Release 5.2.0.27F

Change-Id: Icf4de77c582b8f15d8ccbb598413102340f82de6
CRs-Fixed: 774533
2017-05-30 19:32:32 -07:00
Naveen Rawat
ac027cbe3a qcacld-3.0: Fix STA_ID usage
In HDD STA_ID is being incorrectly used. This change fixes
following two issues:
1) 0 is treated as invalid STA_ID.
2) In hdd_get_transmit_sta_id function, value of INVALID
STA_ID is used as indication for MC/BC packet. This should
rather be a check against status returned from get_sta_id API.

Change-Id: I1710a73b8698c0fd4c537af35f947293c9ab623d
CRs-Fixed: 2039010
2017-05-30 19:32:31 -07:00
Rajeev Kumar
be0212444b qcacld-3.0: Remove un-used cds_context argument from post_disable
cds_post_disable does not use cds_context argument hence remove it.

Change-Id: I44f78b5544431c2ebe06748c058ecb2279711ff9
CRs-Fixed: 2008071
2017-05-30 19:32:29 -07:00