Commit Graph

5170 Commits

Author SHA1 Message Date
Venkata Sharath Chandra Manchala
1676defe7e qcacld-3.0: Enable TSO
Add FEATURE_TSO flag in Kbuild to enable the
TSO feature for Lithium based chipsets

Change-Id: Ie26b2b9a191828b3ce833000a7abbb09dd492713
CRs-Fixed: 2042950
2017-06-07 12:14:46 -07:00
snandini
905e33947d Release 5.2.0.28S
Release 5.2.0.28S

Change-Id: I1e5b22a7d4de2a17d92333bd9e9ecf4c407f5b45
CRs-Fixed: 774533
2017-06-07 04:11:08 -07:00
Ajit Pal Singh
747b6807c1 qcacld-3.0: Handle wifi config attribute RESTRICT_CHANNEL
Handle WIFI configuration vendor attribute
QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL.
This attribute is set by applications to restrict operations which
cause the AP/GO to go offchannel.

A counter is also added to hdd_adapter to track the number of times
this attribute is set by different applications.
This counter will be reset in the driver when the AP/GO interface is
brought down.
It is the responsibility of the application to remember(through
persistent storage) that it has applied the setting and in case the
application is killed it should be able to recall that it has made the
setting when it is re-started next time.

Change-Id: I45106c8515756d1a007514f1b3e9744bd6ce4834
CRs-Fixed: 2050999
2017-06-07 04:11:07 -07:00
snandini
c6552b9cb9 Release 5.2.0.28R
Release 5.2.0.28R

Change-Id: I71eac69d1126d83ccd52c3ef7db57cc6a3d59236
CRs-Fixed: 774533
2017-06-07 02:45:09 -07:00
hqu
eaa33eee78 qcacld-3.0: Flush scan_block_work when receive NETDEV_GOING_DOWN notifier
qcacld-2.0 to qcacld-3.0 propagation

In some case, scan_block_work will be scheduled, but NETDEV_DOWN will
come before scan_block_work executed, it will lead to crash. Because
in this case it will call ___cfg80211_scan_done to free scan request in
cfg80211_netdev_notifier_call firstly, but it will access scan request
in wlan_hdd_cfg80211_scan_block_cb afterwards, so it will crash.
Add flush scan_block_work process when receive NETDEV_GOING_DOWN notifier.

Change-Id: Iada4b907f5fb03871406904340e21b6cdf89306f
CRs-Fixed: 2034794
2017-06-07 02:45:09 -07:00
Dustin Brown
4ea846d166 qcacld-3.0: Clarify WOW wakeup print messages
The WOW wakeup print messages are causing some confusion. Explicitly
log that UNSPECIFIED wakeups are not caused by WLAN to help.

Change-Id: Ia4d009a702d4a488414a65dd189ed129bde92067
CRs-Fixed: 2053267
2017-06-07 02:45:08 -07:00
snandini
6a810474cb Release 5.2.0.28Q
Release 5.2.0.28Q

Change-Id: I7fa0f941430f1ab6bd8fdf499c5128c2e093310f
CRs-Fixed: 774533
2017-06-06 23:48:33 -07:00
hqu
e52fdd610d qcacld-3.0: Fix wrong function call to get hdd_ctx
It should use function call cds_get_context(QDF_MODULE_ID_HDD) to
get hdd_ctx.

Change-Id: Iba53421d99cff8b78480246d2b18e108eb004f92
CRs-Fixed: 2055622
2017-06-06 23:48:33 -07:00
Padma, Santhosh Kumar
881046193e qcacld-3.0: Remove peer if add bss fails
Currently peer is not removed if add bss fails. This can cause
assert in firmware as driver sends VDEV DELETE without peer delete.

Add changes to remove peer if add bss fails.

Change-Id: I7591af55f24919af9cf2d1f288a5bd9ff706adda
CRs-Fixed: 2029804
2017-06-06 23:48:31 -07:00
wadesong
ba6373eb7d qcacld-3.0: Fix an improper trial spin lock acquiring
Return value of __netif_tx_trylock should be checked immediately
after being invoked, any subsequenct actions designated to the
atomic context should be abandoned if trial acquiring of the
spin lock fails

Change-Id: I95504eed14c3e30d014aa1ccc23356a7df02fb00
CRs-Fixed: 2047246
2017-06-06 23:48:30 -07:00
snandini
6c5d3df31c Release 5.2.0.28P
Release 5.2.0.28P

Change-Id: Id01ddb371741b15265faac18b3d34e4d827633e8
CRs-Fixed: 774533
2017-06-06 10:26:25 -07:00
lifeng
13a89d7d81 qcacld-3.0: Add ini to configure SAP 11n max mcs
qcacld-2.0 to qcacld-3.0 propagation

Add support for configure host init SAP HT rate
upper bound.

Change-Id: If749f8a036d98d9070cb05170fa1e612fcb30e8a
CRs-Fixed: 1091897
2017-06-06 10:26:24 -07:00
lifeng
959a04cedc qcacld-3.0: Support for configure wlan rts sifs,ampdu count
qcacld-2.0 to qcacld-3.0 propagation

Add support for host enable/disable rts sifs bursting, and set
default tx mpdu aggregation count.

CRs-Fixed: 1089478
Change-Id: Ieb63621f217ccd1a50b925ea4dda05fecad01387
2017-06-06 10:26:23 -07:00
snandini
54ed2aa925 Release 5.2.0.28O
Release 5.2.0.28O

Change-Id: Id5fd87278f440ac35094a688056c5fb76179e8a8
CRs-Fixed: 774533
2017-06-06 08:30:58 -07:00
Selvaraj, Sridhar
532ea981c3 qcacld-3.0: Send RSO Start followed by RSO Stop for supplicant disabled roam
Currently, if supplicant disabled roaming, driver doesnot send RSO
cmd to fw. This causes roam invoke to fail in FW since RSO start
never happened at least once to configure roaming engine in FW.

After connection, Send RSO start followed by RSO Stop if supplicant
disabled roaming to make sure roaming engine in FW is configured
properly with required parameters at least once.

Change-Id: I72b73554b03ea3f0fa04d0da2a2db96c0ed8b1c8
CRs-Fixed: 2042629
2017-06-06 08:30:57 -07:00
Selvaraj, Sridhar
05ea0791e3 qcacld-3.0: Restrict FILS caps in ext cap to STA mode only
Currently, host driver sets FILS capability enable if broadcast
probe response support is enabled(i.e. g_enable_bcast_probe_rsp).
since this support adds FILS request params IE(which has the max
channel time STA would wait for AP to respond with broadcast probe
response) in probe request, FILS capability is set in ext cap.
However, it is also set in SAP role which leads to scan issues with
some client stations.

Restrict FILS caps in ext cap to STA role only if
g_enable_bcast_probe_rsp INI is set.

Change-Id: Ia5fc0cbf36a4a6df3eb21015ef0508f6daa7b21d
CRs-Fixed: 2048318
2017-06-06 08:30:56 -07:00
snandini
be5fbc74ca Release 5.2.0.28N
Release 5.2.0.28N

Change-Id: I60e09192ff7fc3a835426fe4db0cc085cbf3fdae
CRs-Fixed: 774533
2017-06-06 07:21:29 -07:00
Ajit Pal Singh
2c7aecd2ed qcacld-3.0: Combine LTE Coex & DNBS avoid freqs
Avoid frequency list can be generated due to LTE Coex and
Do_Not_Break_Stream.
Combine LTE Coex & DNBS avoid frequencies before sending the list to
application.

Change-Id: Ibafac2fcc160d029fc5643847a5647edf10db29d
CRs-Fixed: 2045120
2017-06-06 07:21:28 -07:00
Ajit Pal Singh
5edd698a74 qcacld-3.0: Adds API to send avoid_freq list for DNBS
Adds API to send "list of frequencies to be avoided"
to the application, when Do_Not_Break_Stream is active.
When DNBS is active, all frequencies other than the
AP/P2P-GO operating frequency, in the current band are to be avoided.

Change-Id: Ia27b5911715a216f0ab49aa0d984243e9ea49b64
CRs-Fixed: 2045120
2017-06-06 07:21:26 -07:00
snandini
0b7df64c45 Release 5.2.0.28M
Release 5.2.0.28M

Change-Id: I30bb6308ce76a98b0fc7732906e659d5df44bdcf
CRs-Fixed: 774533
2017-06-06 06:20:36 -07:00
Hanumanth Reddy Pothula
42e714a329 qcacld-3.0: Decrease default timer waiting value for interface up
presently timer value is 250sec for wlan interface up from the upper layer,
which is too high.hence moving to 5sec.

Change-Id: Ia955bd12ab37f33c312c728d55c0019317a20acc
CRs-Fixed: 1104031
2017-06-06 06:20:35 -07:00
snandini
5b3ecf64b1 Release 5.2.0.28L
Release 5.2.0.28L

Change-Id: If9c01943b8c6aaeed576d59f52a2832245625bd9
CRs-Fixed: 774533
2017-06-06 03:22:55 -07:00
Nachiket Kukade
8b4bfd8c75 qcacld-3.0: Advertise CSN of BF Antenna as 7 in VHT Caps if fw supports
If firmware supports CSN[Compressed Steering Number of Beamformer Antennas
] 8x8 and if the concerned INI(i.e. gTxBFCsnValue) is set above 3 which is
default fw support currently, send Probe/Assoc Request with CSN in VHT caps
as set in INI. Else set CSN to 3.

CSN of Beamformer Antenna in VHT caps is one less than the max number of
space time streams that the STA can receive in VHT NDP(i.e. CSN in VHT caps
= max space time streams STA can receive - 1)

Change-Id: I6c77f7513ee090beba8849b27c90ac0346e1ac58
CRs-Fixed: 2052348
2017-06-06 03:22:55 -07:00
snandini
31dee37e98 Release 5.2.0.28K
Release 5.2.0.28K

Change-Id: I4139ab5e42d543f5dc3555a1847db103e2b3d5bb
CRs-Fixed: 774533
2017-06-06 01:26:07 -07:00
Naveen Rawat
4efe41b40a qcacld-3.0: Initialize WIFI_POS DMA rings
Parse Service Ready Extension event to get requested DMA ring capability
and initialize DMA rings.

Change-Id: I491e61a2ebbab549c31635ea74dcb89e20be3f97
CRs-Fixed: 2055839
2017-06-06 01:26:06 -07:00
snandini
099172dfbf Release 5.2.0.28J
Release 5.2.0.28J

Change-Id: Ie61587c412bc2aef05fa5ca30fd1cff02e4e7363
CRs-Fixed: 774533
2017-06-05 22:52:39 -07:00
Venkata Sharath Chandra Manchala
0b9fc63dd1 qcacld-3.0: Support for DPTRACE
1. Add an extra parameter pdev id to
   qdf_trace signatures to avoid compilation break.
2. This variable allows to collect records per pdev
   for Lithium based chipsets.
3. Set this variable to a default value QDF_TRACE_DEFAULT_PDEV_ID
   for older chipsets.

Change-Id: I2f4c2e3525ac0d1d53f1af3db7e43acadf6ab835
CRs-Fixed: 2049412
2017-06-05 22:52:39 -07:00
snandini
fd4a637341 Release 5.2.0.28I
Release 5.2.0.28I

Change-Id: Ib3366186a7c4f5807f0b703927dbc3152c42fefe
CRs-Fixed: 774533
2017-06-05 22:11:23 -07:00
Abhishek Singh
32517edb2f qcacld-3.0: Do not add peer if same MAC peer exist on any other vdev
If the peer's MAC is same as the peer present on any other vdev,
and if this peer is added to firmware, firmware will crash.

To fix this do not add peer, if peer with same MAC exist on any
other vdev.

Change-Id: I5565f4b18ab68cff6b63ba99f307f16654e50246
CRs-Fixed: 2053392
2017-06-05 22:11:22 -07:00
Selvaraj, Sridhar
1472b59d98 qcacld-3.0: Initialize add_ie while updating scan ie
Initialize add_ie to false to avoid the possibility of
using add_ie with random value.

Change-Id: Ic2a4dfee2961220f853e674c3dfe90707377bf24
CRs-Fixed: 2042711
2017-06-05 22:11:20 -07:00
Selvaraj, Sridhar
8048dea04d qcacld-3.0: Properly initialize and reset default_scan_ies_len
On wifi config set of default scan ies from supplicant, default_scan_ies_len
is not properly initialized and reset leading to memory overwrite.

Properly initialize the default_scan_ies_len on every wifi config set
of default scan ies from supplicant.

Change-Id: Ib26820e30019a30a7d6369d382d51b648b6b0d43
CRs-Fixed: 2036132
2017-06-05 22:11:18 -07:00
Selvaraj, Sridhar
021ee0ace3 qcacld-3.0: Update scan request IE's with default scan IE's
1) If g_qcn_ie_support is enabled, Save QCN IE along with default scan
   IE's received from Supplicant at init time.
2) Compare and update scan IE's with saved default scan IE's for each
   scan offload request to FW.

Change-Id: I902ab753db3bc3d5b4de400f550bf4ba3ceb424b
CRs-Fixed: 2033203
2017-06-05 22:11:16 -07:00
snandini
f00f92636f Release 5.2.0.28H
Release 5.2.0.28H

Change-Id: I4c1ff80947642cb22a6f40906ad2cf25c78103f4
CRs-Fixed: 774533
2017-06-05 21:10:44 -07:00
Adesh Keremane
25ce2dc86a qcacld-3.0: Keep only selected band's channels for ACS
Currently, PCL may not have the weights for the channels
from the selected band.

Keep only the channels of the selected band and remove
the channels of other band from ACS channel list
and PCL.

CRs-Fixed: 2053468
Change-Id: Ie71febe9068493e2c356f0590a86e3c15494b2e1
2017-06-05 21:10:43 -07:00
snandini
5c90701fc6 Release 5.2.0.28G
Release 5.2.0.28G

Change-Id: I241be06f60d5674ef6790b6a00150eb5c2ce42d3
CRs-Fixed: 774533
2017-06-05 20:31:23 -07:00
Selvaraj, Sridhar
6f97f41021 qcacld-3.0: Parse beacon IE's to extract Fixed fields
Currently, in beacon IE parsing of roam synch indication, fixed fields
[beacon interval, timestamp, capabilities] are not parsed resulting
in these fields being reported as zeros to supplicant.

Parse beacon IE's to extract fixed fields from beacon IE's.

Change-Id: I3ba2b8037de99a49b42eeecc7670bdb23c118f9d
CRs-Fixed: 2053019
2017-06-05 20:31:22 -07:00
snandini
c9703c2ace Release 5.2.0.28F
Release 5.2.0.28F

Change-Id: Ife3d5d6f7aa99e52fb79d37e38796d0a4e1cc11a
CRs-Fixed: 774533
2017-06-05 19:29:07 -07:00
Varun Reddy Yeturu
96dced7129 qcacld-3.0: Defer disconnect from driver unload during roaming
Defer the disconnect that is issued because of driver unload
and handle it immediately after the roaming is complete.

Change-Id: I9200d0f218560f2a990f491a27563bbbf594ae24
CRs-Fixed: 2025273
2017-06-05 19:29:07 -07:00
Varun Reddy Yeturu
eb2933233e qcacld-3.0: Fix the FW version in bugreport
The firmware version sub id is not included in the current Bugreport.
Including subid and HW version.

Change-Id: Idc96c15d377935e0ff7291b5542ef34627613136
CRs-Fixed: 2034277
2017-06-05 19:29:03 -07:00
Varun Reddy Yeturu
beaf750b85 qcacld-3.0: Fix the logging levels
Move a few logs to appropriate levels so that they are
not unnecessarily spamming the dmesg

Change-Id: I0ae839ef1420f3a540cfccee3867261ddf5a5870
CRs-Fixed: 2043741
2017-06-05 19:29:02 -07:00
snandini
3b66f90dac Release 5.2.0.28E
Release 5.2.0.28E

Change-Id: Id9024858cf7a664142520626393550983fa0727d
CRs-Fixed: 774533
2017-06-05 17:23:51 -07:00
hqu
1a44d38c89 qcacld-3.0: Fix watchdog bark issue when do traffic on HL card
When data traffic is running on HL card, it will hit watchdog
bark issue. It's caused by wrong pointer usage in ol_tx_queue.c.

Add fix to sync with qcacld-2.0.

Change-Id: I7869ef86839e69e515ccd70795b3909abc09d46c
CRs-Fixed: 2053632
2017-06-05 17:23:51 -07:00
Mukul Sharma
be846bbbdc qcacld-3.0: Skip packet filter in disconnect state
Currently, Host allows to set packet filter in disconnect
state which is leading assert in firmware.
As a part of this fix, skip packet filter configuration
in disconnect state.

Change-Id: Ibc02105fe4d2455dfb0e527d7fcb240fc1b39330
CRs-Fixed: 2041846
2017-06-05 17:23:49 -07:00
Padma, Santhosh Kumar
922344761b qcacld-3.0: Reset ext_cap structure
Currently ext_cap structure is not reset to zero in
lim_send_probe_rsp_mgmt_frame. This can cause
dot11f_unpack_ie_ext_cap to return status other than
DOT11F_PARSE_SUCCESS and result in unnecessary error messages in
lim_update_extcap_struct.

Reset ext_cap structure in lim_send_probe_rsp_mgmt_frame to fix this.

Change-Id: I874d4d150a405d32737912f0b40661bafa5df268
CRs-Fixed: 2035704
2017-06-05 17:23:48 -07:00
snandini
ad6ee1f39e Release 5.2.0.28D
Release 5.2.0.28D

Change-Id: I6f7772e513097c9f6b28ed671dbbaf7827b1e12f
CRs-Fixed: 774533
2017-06-05 13:29:43 -07:00
Mahesh Kumar Kalikot Veetil
8d3cbeebc0 qcacld-3.0: Add missing enums to sap_hdd_event_to_string()
Add eSAP_DFS_CAC_INTERRUPTED, eSAP_ECSA_CHANGE_CHAN_IND and
to sap_hdd_event_to_string(). Currently these events are
printed as eSAP_HDD_EVENT_UNKNOWN.

Change-Id: Ic59b4dfcfdd09aa808398d9dcd0b935cedfa7de3
CRs-Fixed: 2053387
2017-06-05 13:29:42 -07:00
snandini
28ba2437e8 Release 5.2.0.28C
Release 5.2.0.28C

Change-Id: Icf365ab6a6be79ea6b364ce38163d66c1f35aa6b
CRs-Fixed: 774533
2017-06-05 11:41:48 -07:00
Jeff Johnson
20b5dc36e3 qcacld-3.0: Avoid extscan bucket spec overread
Currently in hdd_extscan_start_fill_bucket_channel_spec() the
QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC attribute is parsed without
specifying a policy. This means that no policy is enforced.
Subsequently the values of the nested attributes are retrieved, but
again without any length limits enforced. This could result in a
buffer overread.

To prevent this issue:
* Parse using the existing policy wlan_hdd_extscan_config_policy
* Update the policy to add missing attributes

Change-Id: I3b20cb28d1beccd2e804b022b531413ad1edb533
CRs-Fixed: 2054958
2017-06-05 11:41:47 -07:00
snandini
2f273775ae Release 5.2.0.28B
Release 5.2.0.28B

Change-Id: I9033ab97b69c61fa379656dde42a6d74d3c8bfa5
CRs-Fixed: 774533
2017-06-05 10:00:06 -07:00
Ganesh Kondabattini
5e0ac2ab19 qcacld-3.0: Update channel width in Operating Mode IE
Host is always updating channel width as 20MHz while updating the
rx nss value in Operating Mode IE.

Channel width should be updated from session entry.

CRs-Fixed: 2048435
Change-Id: Ib78f52d3ad1be875450a76c20a9332933f50277f
2017-06-05 10:00:05 -07:00
Ganesh Kondabattini
f847f06b60 qcacld-3.0: Donot process get tx power command in disconnected state
Driver is accepting get tx power request from the application in
disconnected state and requesting FW for class A stats.
Since it is in disconnected state driver fails to parse the peer
stats.

CRs-Fixed: 2052864
Change-Id: Ie49528f0822b45bb103bc578f35b992797ebb1c5
2017-06-05 10:00:04 -07:00
snandini
cc0d3b97f5 Release 5.2.0.28A
Release 5.2.0.28A

Change-Id: Ied74d00ff11c6cfea19cd7b2dd833776c945b800
CRs-Fixed: 774533
2017-06-05 09:22:29 -07:00
Ganesh Kondabattini
5bcc3e7fa8 qcacld-3.0: Send response to stats request
WMA is ignoring stats request if there is already pending stats request
for the same sta id. When WMA ignores stats requests it should send a
response back to HDD so that it doesn't timeout waiting for response.

CRs-Fixed: 2052962
Change-Id: I781816c42fac12a0ace4e64558fc09418f32ddd7
2017-06-05 09:22:28 -07:00
Ganesh Kondabattini
9e4fbbbe57 qcacld-3.0: Stop TDLS timer when PDR triggered
Host is not stopping the TDLS timers when PDR is triggered.
These timers are expiring during wlan shut down and leading to
crash.

Fix is to stop TDLS timers while resetting adapters.

CRs-Fixed: 2050795
Change-Id: I944081342ff2de2548ff839a7b852d64282c0323
2017-06-05 09:22:27 -07:00
Ganesh Kondabattini
a28484e447 qcacld-3.0: handle connection tracker event from FW
FW indicates the bt coex events using event
'WMI_TDLS_CONNECTION_TRACKER_NOTIFICATION' and with reason as
'WMI_TDLS_ENTER_BT_BUSY_MODE' and 'WMI_TDLS_EXIT_BT_BUSY_MODE'.

WMA is handling this event and sending it to PE, But PE is not
handling it.

This change is to handle WMI_TDLS_CONNECTION_TRACKER_NOTIFICATION
in PE.

CRs-Fixed: 2051707
Change-Id: I844d1883bcb769799170fd7cf7114940d1bb8cd4
2017-06-05 09:22:25 -07:00
Nitesh Shah
622d31246e qcacld-3.0: Reject all vdev commands for TDLS in roaming
All the vdev and peer related commands are forbidden, when the
roaming happens in the system.
Firmware roaming module does vdev_stop, once the roaming is
successfully completed. Part of vdev stop, firmware will delete
all TDLS peers. So after roaming is completed, as part of
roam_sync_complete, host should not send peer_delete. If host
sends peer_delete then FW will not be able to send
peer_delete_resp_event as peer is already deleted
during roaming.

Make changes to reject all vdev and management commands
to firmware, when roaming is in progress in the system.

Change-Id: I17b36d0ce484efeda9dc537684792c7a90d2eae8
CRs-Fixed: 2049039
2017-06-05 09:22:23 -07:00
snandini
608bd1b659 Release 5.2.0.28
Release 5.2.0.28

Change-Id: I7145a12853a885d7896c06f606c5581800638e5c
CRs-Fixed: 774533
2017-06-05 06:15:55 -07:00
Selvaraj, Sridhar
40fcc69397 qcacld-3.0: Update ESE version IE presence to PE session correctly
Currently, driver is not updating the ESE version IE presence to PE
session if power constraint IE is present in beacon/probe. This causes
driver not adding ESE version IE in assoc request though AP is
advertising ESE version IE in its beacon/probe.

Update ESE version IE presence to PE session irrespective of whether
Power constraint IE is present or not.

Change-Id: Idb4ab5ef03449df49ee74848c8824bca9318f08a
CRs-Fixed: 2042660
2017-06-05 06:15:55 -07:00
Nishank Aggarwal
3bda3d113a qcacld-3.0: Avoid self asingment in wma_process_rmf_frame
Remove self assing variable rx_pkt->pkt_meta.tsf_delta
from wma_process_rmf_frame which is already initialized
in wma_mgmt_rx_process from structure wmi_mgmt_rx_hdr.

Change-Id: Ie8a777fccc2fb282018fc9e3548631def00878a4
CRs-Fixed: 2043356
2017-06-05 06:15:53 -07:00
Nishank Aggarwal
68d39274f0 qcacld-3.0: Fix suspicious dereference of pointer
Add proper NULL check before dereferencing pointer.

Change-Id: Ie6b92eae97d51daafe6fa1242263deb9e2e0bd10
CRs-Fixed: 2043356
2017-06-05 06:15:51 -07:00
Nishank Aggarwal
4dbbc919f8 qcacld-3.0: Allow staid with 0 as valid for TDLS Peer
Staid with 0 value is considered invalid for TDLS peer.
But Staid with 0 should not be invalid.

The fix is to allow staid with 0 value as valid for
TDLS peer, and assign 0xFF as invalid staid for TDLS
peer.

Change-Id: Ia175c7f1621e7ac0bb826c60fad4ce98dbd41d44
CRs-Fixed: 2041406
2017-06-05 06:15:49 -07:00
Selvaraj, Sridhar
320ed6226c qcacld-3.0: Remove qdf assert in sme_qos_process_reassoc_req_ev
Remove non critical qdf_assert in sme_qos_process_reassoc_req_ev.

Change-Id: I84eb1b609d310afec4e6a9ed2e4da7b91477ec07
CRs-Fixed: 2054327
2017-06-05 06:15:47 -07:00
snandini
704ce612ce Release 5.2.0.27Z
Release 5.2.0.27Z

Change-Id: If4a2abafa31a5aa2dae2c91c8d995f13349ad599
CRs-Fixed: 774533
2017-06-02 23:27:56 -07:00
Yun Park
ed827b466b qcacld-3.0: Handle ipa_tx_desc is NULL case in hdd_ipa_cleanup
In the hdd_ipa_forward, we are not populating pm_tx_cb->ipa_tx_desc
field. So, during hdd_ipa_cleanup, call ipa_free_skb only when
ipa_tx_desc is not NULL.

Change-Id: Ib15cd3eb0c7b10a205993db27960fa2e7775b335
CRs-Fixed: 2046901
2017-06-02 23:27:56 -07:00
snandini
5a1bd18b2a Release 5.2.0.27Y
Release 5.2.0.27Y

Change-Id: I9b48578f2d021099447ce7d40efe70e024315c9f
CRs-Fixed: 774533
2017-06-02 20:38:58 -07:00
Yue Ma
2be1287daa qcacld-3.0: Prints all objects when SSR shutdown is done
This can help to check which objects are leaked during SSR.

Change-Id: I43c4f381a8d07fc05a0238081d4de7ff18682a0b
CRs-fixed: 2055755
2017-06-02 20:38:57 -07:00
Sreelakshmi Konamki
c931b377ba qcacld-3.0: Fix compilation issues
Observing compilation errors when FEATURE_WLAN_LFR_METRICS
flag is enabled.

Add changes to fix the compilation errors

Change-Id: I9272cf26e590879f327629e21c76b991d077ad5c
CRs-Fixed: 2053760
2017-06-02 20:38:56 -07:00
Kiran Kumar Lokere
dda6077ba4 qcacld-3.0: Disable vendor VHT IE support if 2G 11ac disabled
Disable vendor VHT IE support if 11ac is disabled in 2.4G by
user configuration

Change-Id: I8920fae5352fa1a4c7356918bce3b27e2c4a3345
CRs-Fixed: 2052059
2017-06-02 20:38:54 -07:00
snandini
b885ea9e4d Release 5.2.0.27X
Release 5.2.0.27X

Change-Id: Idf8a64e78c7bd052db9fcdd3a583104e9bea123d
CRs-Fixed: 774533
2017-06-02 18:50:44 -07:00
Sandeep Puligilla
75992053b9 qcacld-3.0: Add more debug logs in vendor scan
Add more debug logs in vendor scan complete
callback API.

Change-Id: Id6240b17df76413ae95ae06df5511ffa9d1ada9e
CRs-Fixed: 2020143
2017-06-02 18:50:43 -07:00
Kiran Kumar Lokere
5be8fc8860 qcacld-3.0: Do not disable TxBFee with VHT caps in vendor IE
Do not disable the TxBfee feature if the VHT caps are in vendor
specific IE.

Change-Id: Ie1c8e15a908d74d9d30b550207225f8b0480035b
CRs-Fixed: 2035404
2017-06-02 18:50:42 -07:00
snandini
0c398ea1b2 Release 5.2.0.27W
Release 5.2.0.27W

Change-Id: I67a9ecb1add02668fe72acd7c14a2eb6583a2742
CRs-Fixed: 774533
2017-06-02 17:59:47 -07:00
Sandeep Puligilla
f0b3058d6a qcacld-3.0: Remove BSS from scan cache after disconnect
P2P connection is failed because host driver is updating
stale BSS entry of P2P go to NL.

Remove BSS entry from scan cache irrespective of reason
code.

Change-Id: I99eb1fd953037bbbd9c1af1147d3656f6ca246c3
CRs-Fixed: 1110752
2017-06-02 17:59:46 -07:00
Yuanyuan Liu
889167d4bf qcacld-3.0: Fix compilation error
Fix compilation error of "sessionId may be used uninitialized in
this function" by initializing sessionId to CSR_SESSION_ID_INVALID.

CRs-Fixed: 2055208
Change-Id: Id2da1f3ee028d85b1e0c1dfc4f65af5a54dd4479
2017-06-02 17:59:44 -07:00
snandini
293c5e2340 Release 5.2.0.27V
Release 5.2.0.27V

Change-Id: I068050fa9c4ded18b22a84f4819d137432b11480
CRs-Fixed: 774533
2017-06-02 17:25:16 -07:00
Manjunathappa Prakash
4a7b1dc764 qcacld-3.0: revert back ol_rx_add_mpdu_to_list to macro
Changes done to head pointer in ol_rx_add_mpdu_to_list() is not
returned back to caller as arguments are sent as pass by value

Change-Id: Ie8c98af2ea4e03b0678df243aa0c832165494168
CRs-Fixed: 2046362
2017-06-02 17:25:15 -07:00
snandini
1254a7bcbc Release 5.2.0.27U
Release 5.2.0.27U

Change-Id: I7682116e9b2ed60761fae2550171165a905b663f
CRs-Fixed: 774533
2017-06-02 14:47:44 -07:00
Krunal Soni
364e087691 qcacld-3.0: Defer power-save for certain APs during initial connection
Few APs create interoperability issues when STA goes to power-save mode
right after initial connection.

In order to resolve these issues, defer the power-save for few seconds
when connected to those APs.

Change-Id: I3f6b642fb4e481dcb8e14f6da141f4cfa9d6b167
CRs-Fixed: 2046014
2017-06-02 14:47:43 -07:00
Manjunathappa Prakash
2754f65563 qcacld-3.0: Fix nbuf tracking in ol_rx_fwd_check(), ol_rx_defrag_decap_recombine()
In ol_rx_fwd_check, do not remove nbuf Rx packet in case intra-bss
forwarded traffic. Regular Tx completion will take care to free the nbuf
and its tracking.

In ol_rx_defrag_decap_recombine(), it is callers responsibilty to free the
source nbuf if concatinate succeeds.

Change-Id: Iaf83524924e312bf819483de38603241f45170a5
CRs-Fixed: 2047377
2017-06-02 14:47:41 -07:00
Arif Hussain
957b20873a qcacld-3.0: Fix isCacEndNotified flag init to fix issues across ssr
If SAP operating in DFS channel and CAC was done, isCacEndNotified
flag was set to true. If ssr triggers, SAP will restart and does cac
wait, and isCacEndNotified flag remains set which will prevent sending
vdev up to firmware to start beacon after cac done.

Change-Id: I02b9c1dbcd1f37df1de134ce54233c2061bf7cec
CRs-Fixed: 2049957
2017-06-02 14:47:38 -07:00
snandini
8c10e02d05 Release 5.2.0.27T
Release 5.2.0.27T

Change-Id: I01f43f34d7faae8278917730604819cf65cb07ea
CRs-Fixed: 774533
2017-06-02 13:41:18 -07:00
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
Rajeev Kumar
a3f672fd4d qcacld-3.0: Properly handle failures after pre-enable during module start
In hdd_wlan_start_modules() failures after cds_pre_enable are not handled
properly, this leads to freed data structures access during next module
start because driver state is still set to opened state. Add fix to
properly handle failures after cds_pre_enable by 1st doing cds_post_disable
such that FW is PDEV suspended, SoC is reset, ce tasklets are killed and
interrupts are disabled before calling cds_close() because cds_close()
frees host posted buffers to FW and if FW is not PDEV suspended and host
frees posted buffers this can lead to SNOC errors and unknown HLOS memory
corruptions. Also change the driver state to closed state before doing
cds_close such that when next hdd_wlan_start_modules() comes then driver
gets re-opened and re-enabled properly.

Change-Id: I5abfa3c782480d130d7fd3f9087f7a071e4a3f70
CRs-Fixed: 2007845
2017-05-30 19:32:27 -07:00
snandini
bd896bb1aa Release 5.2.0.27E
Release 5.2.0.27E

Change-Id: I801b303f724c75d81adde24c3865f35257ba8ec7
CRs-Fixed: 774533
2017-05-30 17:31:28 -07:00
Ravi Kumar Bokka
4bd571d914 qcacld-3.0: Configure and clear packet filter
Add PMO changes to configure and clear default packet filters
over suspend and resume.

Change-Id: Icd0acdbb58bebb5726a4213b13db59fe083835a5
CRs-Fixed: 2034398
2017-05-30 17:31:27 -07:00
snandini
4cc649fdda Release 5.2.0.27D
Release 5.2.0.27D

Change-Id: I61e5d368a2b67190410b722d1f198a44483f87ca
CRs-Fixed: 774533
2017-05-26 16:11:30 -07:00
Dhanashri Atre
1a6a4ce139 qcacld-3.0: Modify legacy LRO implementation to use QDF
Modify the legacy LRO implementation which is in HDD to
use the implementation in QDF instead. This is to avoid
code duplication and to unify the LRO implementations for
Napier and Helium.

Change-Id: Ie9d3bb6d3dcda5a7d1d5fda6e7cbdef92be30461
CRs-Fixed: 2042812
2017-05-26 16:11:27 -07:00
snandini
5f42266142 Release 5.2.0.27C
Release 5.2.0.27C

Change-Id: I2700794fb8a829bda8d86a759f08a21dcaccc33b
CRs-Fixed: 774533
2017-05-26 11:15:15 -07:00
Naveen Rawat
4195c5ef8e qcacld-3.0: Avoid UMAC messaging in HDD
In hdd_wma_send_fastreassoc_cmd function we are directly invoking UMAC
messaging rather than calling an SME API. Implement SME API that can be
called from hdd_wma_send_fastreassoc_cmd and take care of messaging.

Change-Id: I2924da44e6b5e31e741a8816cf7afea293225219
CRs-Fixed: 2050646
2017-05-26 11:15:15 -07:00
snandini
c673b3da6a Release 5.2.0.27B
Release 5.2.0.27B

Change-Id: Ic431f6f5a7bc75a2fc4c7f424ef3bfe4071754e7
CRs-Fixed: 774533
2017-05-26 07:51:00 -07:00
Yu Wang
430e7de1d4 qcacld-3.0: reduce log to fix a watchdog bark issue
If wlan is unloading when iperf is running, iperf
will call wmm select and check whether it's in
loading/unloading status, if yes, it will send the
following log to user space via wlan logging thread:
'Unloading/Loading in Progress. Ignore!!!';
These logs are printed too frequently, which will
cause watchdog bark.

To fix this issue, remove the log in:
wlan_hdd_validate_context();

Propagated from cld2.0.

Change-Id: I4130ae9bc4693f5b8dd37a2af5f95e90800303cd
CRs-Fixed: 2034385
2017-05-26 07:50:59 -07:00
Yuanyuan Liu
d9db825055 qcacld-3.0: send channel info to cnss daemon
Send channel info to cnss daemon. Daemon will pass these info
to LOWI client.

CRs-Fixed: 2006217
Change-Id: I125a519e188774bb099058ad5c385787800e5411
2017-05-26 07:50:57 -07:00
snandini
1087a88715 Release 5.2.0.27A
Release 5.2.0.27A

Change-Id: Iec9fe8db6ef162a56e241624a26bb877457042f3
CRs-Fixed: 774533
2017-05-26 01:40:48 -07:00
Govind Singh
b78a75c438 qcacld-3.0: Prevent invalid ipa suspend indication to fw
Invalid ipa suspend pipe indication is going to firmware
due to invalid handling of sap_num_connected_sta counter.
Prevent invalid ipa suspend indication to fw when ipa
pipes are down.
Propagation from qcacld-2.0 to qcacld-3.0.

Change-Id: Id7ac76bedc20aac39199e14b7042cfb58ba255fe
CRs-Fixed: 1036471
2017-05-26 01:40:48 -07:00
yeshwanth sriram guntuka
2bc14356bc qcacld-3.0: Send rx rssi in mgmt frame ind
Rssi value is set to zero in mgmt frame ind
sent to sme via lim_send_sme_mgmt_frame_ind
in few cases.

Fix is to send rx rssi normalized value.

Change-Id: Ie8731dc2968fdfe4503266039f4753405db1b8ce
CRs-Fixed: 2032629
2017-05-26 01:40:46 -07:00
snandini
197a18c827 Release 5.2.0.27
Release 5.2.0.27

Change-Id: I94bced7a5e44c3e0e9c026b1e113b78efaff9964
CRs-Fixed: 774533
2017-05-26 00:30:23 -07:00
Anurag Chouhan
1ddb9b3e47 qcacld-3.0: Add uevent to update status & data
Update uevent status to hdd, based on the uevent received
from the platform driver

Change-Id: I1ac0fa61efa8b7f4f9d5e4e6abfcf969dbc1c592
CRs-fixed: 2027958
2017-05-26 00:30:22 -07:00
Prashanth Bhatta
bd92f53484 qcacld-3.0: Implement uevent call back for snoc
Platform driver icnss can provide uevent notification like FW
ready & FW crashed. Register the call back for notification and
update driver state for FW crashed indication so that driver
doesn't have to wait for shutdown call back to know FW crashed.

CRs-fixed: 2004309
Change-Id: I48afe8e023107aba8362324e3adabf6d50996b67
2017-05-26 00:30:21 -07:00
snandini
9d8f469223 Release 5.2.0.26Z
Release 5.2.0.26Z

Change-Id: I7b2f31532a5946d28043cf823884eb36b1233b20
CRs-Fixed: 774533
2017-05-25 20:41:01 -07:00
Naveen Rawat
334c51bb7d qcacld-3.0: Fix NDI create crash
When NDI create and delete are repeated multiple times NDI create
crash second times due to MC thread getting stuck in infinite loop
within function csr_scan_append_bss_description. This function is
not applicable for NDI profile type. This patch fixes this by avoiding
csr_scan_append_bss_description for NDI mode.

Change-Id: If63068e214fa546f1ed015a99ed5b2f95298b39b
CRs-Fixed: 2044704
2017-05-25 20:41:01 -07:00
snandini
3e96ff43bb Release 5.2.0.26Y
Release 5.2.0.26Y

Change-Id: Iafc2ba2ee74e84b8a85740c1e613e1cea3288dcd
CRs-Fixed: 774533
2017-05-25 18:21:42 -07:00
Dustin Brown
7f939930bb qcacld-3.0: Add gTimerMultiplier ini item
Expose the new QDF timer multiplier APIs via a new ini configuration
item, gTimerMultiplier.

Change-Id: I76f86f1488f4335dc7f1f128e1469f3f4cf32645
CRs-Fixed: 2049308
2017-05-25 18:21:41 -07:00
Dustin Brown
3c89c01c64 qcacld-3.0: Address WoW event handler refactor comments
There were several suggested improvements to the previous WoW event
handler refactoring. Address these recommendations in this follow-up
commit.

Change-Id: Id7a67f63c681bda8453b46451388a168d268bc0c
CRs-Fixed: 2040961
2017-05-25 18:21:38 -07:00
snandini
23a7bb03b5 Release 5.2.0.26X
Release 5.2.0.26X

Change-Id: I01b6853ce3d0231a86ecdd363a4e6048f9753ff1
CRs-Fixed: 774533
2017-05-25 16:11:25 -07:00
snandini
0cbf56fde0 Release 5.2.0.26W
Release 5.2.0.26W

Change-Id: I8fe59e8e2b92d0299b6cdee64cb8a4899a7f97ec
CRs-Fixed: 774533
2017-05-25 14:09:59 -07:00
Wu Gao
0c45d6ac19 qcacld-3.0: close session for P2P GO properly
It will clean session id at then end of cfg80211 stop ap and won't set
flag SME_SESSION_OPENED after sap session started, which case session
for P2P GO can't be closed properly.

Change-Id: I0c6f21f3616ededd9e827b3eac9cbbe2c26bc60c
CRs-Fixed: 2050994
2017-05-25 14:09:58 -07:00
snandini
bead68ed09 Release 5.2.0.26V
Release 5.2.0.26V

Change-Id: Idab785e91bc5b35b575daf3a63c78b1c9d9a4c5b
CRs-Fixed: 774533
2017-05-25 05:36:21 -07:00
Naveen Rawat
90542b3268 qcacld-3.0: Fix memory leaks in csr_save_profile
Fix memory leaks in csr_save_profile by freeing all buffers within
saved cmd allocated within this function.

Change-Id: Ie06c91b145165df21992829883be11932871550d
CRs-Fixed: 1116619
2017-05-25 05:36:21 -07:00
snandini
3d58d793c9 Release 5.2.0.26U
Release 5.2.0.26U

Change-Id: I4180d7fff4934f94e95fc06fa1d2d8ffcc3fbfa9
CRs-Fixed: 774533
2017-05-25 05:01:34 -07:00
Sravan Kumar Kairam
2fc4755bc7 qcacld-3.0: Do not acquire rx wake lock for non local ARP
Propagation from qcacld-2.0 to qcacld-3.0

Currently even for non local ARP requests wake lock is getting
acquired which is preventing the system suspend which is a power
penalty. Do not acquire wake lock for the non local ARP requests.

Change-Id: I5fcd0cf0edc5c28a4662ae49a33cc55a77f3d3e4
CRs-Fixed: 1088974
2017-05-25 05:01:34 -07:00
snandini
6441d078d8 Release 5.2.0.26T
Release 5.2.0.26T

Change-Id: I53f9fd06ddefc7cbe819039a5fae8eaaa6516e8c
CRs-Fixed: 774533
2017-05-24 23:57:06 -07:00
Naveen Rawat
23be88d185 qcacld-3.0: Fix csr_is_auth_type11r
Fix csr_is_auth_type11r to return correct value for open security
when MDIE is not present in beacon or probe response.

Change-Id: Idad01f9f708776f40514cac81d6c007eb6e53a00
CRs-Fixed: 2035374
2017-05-24 23:57:04 -07:00
snandini
f2b81b998c Release 5.2.0.26S
Release 5.2.0.26S

Change-Id: Id37f594cedaeceff798de791f2a7cfc0686a434d
CRs-Fixed: 774533
2017-05-24 12:10:11 -07:00
SaidiReddy Yenuga
699d90e4b0 qcacld-3.0: Create and Destroy bug report lock over insmod and rmmod
Logging thread creates the bug report spinlock initially.
ifconfig thread tries to create the same spinlock
again, this leads to change in spinlock magic.

Create and Destroy the same lock on insmod/rmmod only.

CRs-Fixed: 2033886
Change-Id: Iea2fe4f9bd47b0d7f4ad1a176a361bac242b9d4d
2017-05-24 12:10:11 -07:00
snandini
c90d1f2e99 Release 5.2.0.26R
Release 5.2.0.26R

Change-Id: I50ec0a83068ca27fb0f88e516e959269e84f4e9b
CRs-Fixed: 774533
2017-05-24 05:17:10 -07:00
Abhishek Singh
34c15647ed qcacld-3.0: Send VDEV STOP if host fails in vdev start resp
In Vdev start response if due to some reason host fails it doesnt
send vdev stop to firmware to mark vdev as inactive. Due to this
when delete vdev is received by firmware it crashes.

To fix this send VDEV STOP to firmware if vdev start response fails
in host.

Change-Id: I170265069d7e92b091397a63972575bfe7c9ef6d
CRs-Fixed: 2038379
2017-05-24 05:17:09 -07:00
Abhishek Singh
de410b77d3 qcacld-3.0: Use memory passed by caller in u_mac_post_ctrl_msg
Caller pass an allocated memory to u_mac_post_ctrl_msg, but memory
is again allocated in u_mac_post_ctrl_msg before passing it to message
queue.

This change remove this duplicate mem allocation and use the memory
passed by the caller.

Change-Id: I4d329c5883832bb6571d1e81f0d9b9a044ebb6d9
CRs-Fixed: 2050449
2017-05-24 05:17:08 -07:00
snandini
df56f6b563 Release 5.2.0.26Q
Release 5.2.0.26Q

Change-Id: I9c97203a5fc0c4b73d2ba586ffc3a31f793ed5c9
CRs-Fixed: 774533
2017-05-24 04:34:04 -07:00
Abhishek Singh
65d8b15b23 qcacld-3.0: Set DS params only for 2.4 Ghz channels
If QCA_WIFI_3_0_EMU DS params is set for all channels.

To fix set DS params only in 2.4 Ghz channels.

Change-Id: I859b56080f55428c27aacf3fea25223c8931c960
CRs-Fixed: 2045226
2017-05-24 04:34:03 -07:00
snandini
ad9ebe0b78 Release 5.2.0.26P
Release 5.2.0.26P

Change-Id: I2bd69f4c10e6192e34f4a470f65481c913ae3ca4
CRs-Fixed: 774533
2017-05-24 03:37:25 -07:00
Selvaraj, Sridhar
dc2ac8e2ef qcacld-3.0: mem alloc for variables instead of using stack
Currently, function variables in csr_send_join_req_msg and
csr_roam_connect uses stack and are consuming much of the stack
eventually reaching the stack end quickly.

To avoid stack consumption issue, mem alloc function variables
instead of using stack.

Change-Id: If6fecb7f7ca9a31fdda2ea12d40a110e6c238508
CRs-Fixed: 2045315
2017-05-24 03:37:24 -07:00
Hanumanth Reddy Pothula
aef3c7f03c qcacld-3.0: After disconnect, return valid RSSI value on getRSSI IOCTL
During wlan disconnect, after sending del bss indication to firmware,
host expects vdev stats indication from firmware to update rssi
value of current disconnect AP and to return same to upper-layer if
getRSSI is received after disconnect. But presently, due to invalid
condition check, Host failing update rssi value.

If VDEV is up and BSSID is zero, get RSSI from vdev stats indication
and update the same in HDD. So that driver can return valid rssi to
upper-layer, on receiving getRSSI indication after disconnect.
Change-Id: I0554e513535bc033ea3bfe5021b5f8ddc108ffbe
CRs-Fixed: 2047842
2017-05-24 03:37:21 -07:00
Yuanyuan Liu
81982b96cb qcacld-3.0: Add support of sending fw_log_mode to WLAN FW
Add support of sending fw_log_mode to WLAN FW for QCA6290. WLAN FW
will decide whether to push its debug log through DIAG or not based
on this value.

CRs-Fixed: 2046631
Change-Id: I6c4ec8dbd65f8fc034381770bdef7e145b1d2b6a
2017-05-24 03:37:18 -07:00
snandini
9711804b0a Release 5.2.0.26O
Release 5.2.0.26O

Change-Id: I1416f1f1b76539d89ec9b5f6c0be1517ba748d63
CRs-Fixed: 774533
2017-05-24 02:41:15 -07:00
Venkata Sharath Chandra Manchala
bcdfdb14f2 qcacld-3.0: Support for HTT Stats
1. Remove unused variable of type ol_txrx_stats_req
   passed through cdp_txrx_stats api to avoid
   compilation break.
2. Add dp_stats file to the Kbuild. This file is
   used to collect HTT Statistics for Lithium based
   chipsets.

Change-Id: I0252c996d47cc866291d25f35eb9bb9e19073a8b
CRs-Fixed: 2050798
2017-05-24 02:41:15 -07:00
snandini
c31e8a7435 Release 5.2.0.26N
Release 5.2.0.26N

Change-Id: I24e38ba29448e82ec65f174f6bb83246ef4bf7d6
CRs-Fixed: 774533
2017-05-23 23:24:52 -07:00
lifeng
907edd6246 qcacld-3.0: Export antenna diversity key parameters to userspace
qcacld-2.0 to qcacld-3.0 propagation

Export antenna diversity key parameters to userspace

Change-Id: I4241a990623b19d34c9ae5c76923b3d9d343183f
CRs-Fixed: 2020300
2017-05-23 23:24:52 -07:00
snandini
75cbaf11f0 Release 5.2.0.26M
Release 5.2.0.26M

Change-Id: I8515047a55725662da96fc9edc6c7e0d84ba1ad7
CRs-Fixed: 774533
2017-05-23 18:00:32 -07:00
Dustin Brown
f13b8c35e5 qcacld-3.0: Ensure adapter is up before ip change work
Currently, the host driver blindly configures ARP/NS offloads and other
work when it receives an IP address change notification from the kernel.
Ensure the specificed adapter is still up before processing IP address
change notification changes from the kernel to prevent extra work and
invalid access.

Change-Id: I087b72a9ffd735a0482d1c4ff9ad62cb8beb036b
CRs-Fixed: 2049976
2017-05-23 18:00:31 -07:00
snandini
83625088ff Release 5.2.0.26L
Release 5.2.0.26L

Change-Id: I289194e1d257c563063b1409534305a9d499c6b3
CRs-Fixed: 774533
2017-05-23 17:20:10 -07:00
Selvaraj, Sridhar
94be8ba8a9 qcacld-3.0: Properly update Power cap IE to FW for LFR3 roaming
Currently, driver updates FW assoc IE's to be used for LFR3 roaming
and is not checking the supported max tx power before updating the
same to FW resulting in different max tx power values in reasssoc
and assoc requests.

For Power cap IE, check and set the max tx power properly if halphy
provided max tx power exceeds the supported value, while updating
the same to FW for LFR3 roaming.

Change-Id: Idec518245963a92da8ee2ba8c509c7248a298901
CRs-Fixed: 2042674
2017-05-23 17:20:09 -07:00
Selvaraj, Sridhar
3810183ae2 qcacld-3.0: Avoid overwrite channel list in RSO command preparation
Currently, while sending RSO command, channel list is overwritten
with valid channel list from mac context even though it is already
properly updated from current channel list info (or) INI.

Avoid overwrite channel list in RSO command if it is already
updated properly.

Change-Id: Iee1875e378270530b29540b379d68b2b0fd7ac2d
CRs-Fixed: 2045067
2017-05-23 17:20:08 -07:00
Selvaraj, Sridhar
1c48756d78 qcacld-3.0: Reset roaming_in_progress flag after SSR
After SSR, scan request is dropped at HDD if roaming_in_progress
flag is set. roaming_in_progress is set when host receives ROAM_START
from fw and reset when as part of ROAM_SYNCH_COMPLETE event. If SSR
happens between these two events, roaming_in_progress is not reset
which leads scan request drop in HDD after SSR.

Reset roaming_in_progress flag after SSR

Change-Id: I25516c288034a1de23ebc5417a4b5bb483216ebc
CRs-Fixed: 2035411
2017-05-23 17:20:07 -07:00
snandini
c49be7c4ce Release 5.2.0.26K
Release 5.2.0.26K

Change-Id: Ib362dda45d13e2572ce8b0de9effbcc21a44625c
CRs-Fixed: 774533
2017-05-22 16:20:40 -07:00
Dustin Brown
9a9437f4ee qcacld-3.0: Adjust default EGAP ini values
Adjust the default EGAP ini values.

Change-Id: I53eecf0b09864c82396197511ec20a7ac0dc9a55
CRs-Fixed: 2048773
2017-05-22 16:20:40 -07:00
snandini
3794c40059 Release 5.2.0.26J
Release 5.2.0.26J

Change-Id: I5098792487118f9a72c1a6ce9503e7071f911989
CRs-Fixed: 774533
2017-05-21 23:55:49 -07:00
yeshwanth sriram guntuka
7f4cb34431 qcacld-3.0: Fix connect failure due to scan stuck
Peer sta kickout ind was received from fw nine times
which resulted in queuing nine scan commands as part
of csr_scan_request_lost_link1 without checking for
max allowed scans. The ninth scan cmd is not released
as fw did not send completion event resulting in
subsequent connect to fail.

Fix is to
1) check for max allowed scans before
queuing scan command.
2) check for lim sme state to avoid invoking tear
down link with ap multiple times on receiving
multiple peer sta kickout ind from fw.
3) don't invoke csr_scan_request_lost_link1 as part
of csr_roam_lost_link as supplicant will issue scan
after successful disconnection.

Change-Id: I850fd336fc73e4b2c2362dfd11db433b68ccd1fb
CRs-Fixed: 2031342
2017-05-21 23:55:48 -07:00
snandini
1e83ab9856 Release 5.2.0.26I
Release 5.2.0.26I

Change-Id: I26f624b14076743259bc2355960b66bf9d671258
CRs-Fixed: 774533
2017-05-19 23:58:27 -07:00
Sandeep Puligilla
f4810705cf qcacld-3.0: Don't process disassoc in disconnecting state
-If disconnection is in progress then don't process the
new disassoc frame.
-Limit the number of logs message related to disassoc
frame dropping.

Change-Id: Ia4d612ec67d4a6b80991a6e0e6393bc59ba76617
CRs-Fixed: 2035813
2017-05-19 23:58:26 -07:00
snandini
352ce8358e Release 5.2.0.26H
Release 5.2.0.26H

Change-Id: I7f795df345f7752ac1e6dda28f789915d0f3f37d
CRs-Fixed: 774533
2017-05-19 15:57:48 -07:00
Krunal Soni
b7f2043b99 qcacld-3.0: Handle bss color change IE coming from AP
If AP changes its color code for 11AX mode then it will announce
through bss color change IE. Connected STA needs to honor that IE
and update its internal table.
Along with color change IE, he ops can also be changed by AP.
STA needs to honor that as well.

CRs-Fixed: 2039284
Change-Id: I4f6767d0a6a814f56448dc6d647e045c852e2750
2017-05-19 15:57:47 -07:00
Peng Xu
6363ec64ef qcacld-3.0: Add support for 11AX BSS color change
Add support for handling BSS color collision and select new BSS
color. Update beacon template and set new BSS color to FW.

Change-Id: If441990916753bdcf4daaded031e16f0460a0e8f
CRs-Fixed: 2039284
2017-05-19 15:57:45 -07:00
Krishna Kumaar Natarajan
0baebf8813 qcacld-3.0: Add new IEs related to 11ax
Add new IEs related to 11ax. Following IEs are added as part of
this MU EDCA Parameter Set and BSS Color Change Announcement.

Change-Id: I5b31f026e3a9625a89bda027599493248fee760a
CRs-Fixed: 2039284
2017-05-19 15:57:43 -07:00
Dustin Brown
36e2e5ce73 qcacld-3.0: Use qdf_print_set_category_verbose()
qdf_trace_set_value() is depreciated. Use
qdf_print_set_category_verbose() instead.

Change-Id: I37a2af5c0e08bfd8e8c6e0ce0e503889e6e0c782
CRs-Fixed: 2048109
2017-05-19 15:57:39 -07:00
snandini
f46d772f5a Release 5.2.0.26G
Release 5.2.0.26G

Change-Id: Iad9a8b7dd22a46ff7f0e384ef3b58d4dca894b60
CRs-Fixed: 774533
2017-05-19 14:50:38 -07:00
Manjunathappa Prakash
bab70f024f qcacld-3.0: Reduce failure log level of OL_TX_SEND
Reduce the excessive failure logging of OL_TX_SEND. Make it as debug log
so that it will not hog the console. OL layer tx flow control stats will
catch the dropped packets.

Change-Id: I57feee9b4eeb7bf6c6c0c239c2a30041936fa758
CRs-Fixed: 2047953
2017-05-19 14:50:38 -07:00
snandini
ca05437d9a Release 5.2.0.26F
Release 5.2.0.26F

Change-Id: I595c714e2d71baa86a4594fa690e82a661b70062
CRs-Fixed: 774533
2017-05-19 13:51:49 -07:00
Selvaraj, Sridhar
4c7411ea7e qcacld-3.0: Update proper status for disable roam cmd
Currently, for disable roam from supplicant, if STA is in
not connected state, driver wont send any commands to FW
as it is unnecessary. However, for this case, driver updates
fail status to supplicant.

Update success status for disable roam cmd when STA is in
not connected state.

Change-Id: I076d1b5389868b5d136e5adce730f6b3ec41e6f8
CRs-Fixed: 2042596
2017-05-19 13:51:48 -07:00
Selvaraj, Sridhar
5b5a06598f qcacld-3.0: Update ignore_assoc_disallowed while creating PE session
For MBO[Multi-Band Operations], supplicant configures driver to ignore
assocition disallowed even if assoc disallowed attribute is present
in MBO IE of target BSS. Currently driver is updating this config
in PE session and fails if PE session doesnot exist at the instance.

Save ignore_assoc_disallowed config to mac context and update the same
to PE session while creating it.

Change-Id: I0379c756f6150533723ba4306f9780e345c3f61f
CRs-Fixed: 2042550
2017-05-19 13:51:46 -07:00
snandini
62ba9bf960 Release 5.2.0.26E
Release 5.2.0.26E

Change-Id: Ia30bae4d02fcd787169088bb63ac6fcc3d50010b
CRs-Fixed: 774533
2017-05-19 11:51:09 -07:00
snandini
324eaed6c3 Release 5.2.0.26D
Release 5.2.0.26D

Change-Id: Icb241b161d79c7d5d96eed87f3d0b196d2d203ac
CRs-Fixed: 774533
2017-05-19 11:06:35 -07:00
Naveen Rawat
8021e459e1 qcacld-3.0: Fix memory leak in restart bss path
Function sapconvert_to_csr_profile is allocating memory for
pRSNReqIE without checking if it is already populated. This
will leak memory if this function is getting called for sap
restart. Fix this by first freeing memory if already allocated.

Change-Id: I562b1dabb330057b4f1b934b0edad692330aab70
CRs-Fixed: 2046608
2017-05-19 11:06:34 -07:00
snandini
0c0ae02833 Release 5.2.0.26C
Release 5.2.0.26C

Change-Id: I4bf54618ea918375886d6734390a0a8d11399405
CRs-Fixed: 774533
2017-05-19 06:32:04 -07:00
Naveen Rawat
2b6e3c9d51 qcacld-3.0: ini param support for disconnect threshold
This is qcacld-2.0 to qcacld-3.0 propagation.

This patch adds ini support for WMI_VDEV_PARAM_DISCONNECT_TH
which represents number of dropped packets before FW sends out
kickout event for that peer to host.

Change-Id: I4c82bd1b5d1bc5d8265e3b0e5e58c82cdcab7f50
CRs-Fixed: 862686
2017-05-19 06:32:03 -07:00
snandini
989ea669cb Release 5.2.0.26B
Release 5.2.0.26B

Change-Id: I55681e2f687e1170e6df3fafe52a58ea7b68090a
CRs-Fixed: 774533
2017-05-19 05:27:29 -07:00
Nitesh Shah
50a3de1447 qcacld-3.0: Add ini item used in DBS Scan selection policy
Add ini item gdbs_scan_selection for DBS Scan selection policy.

Change-Id: If71df05afac7139d4ceccd190e8196c7476445b5
CRs-Fixed: 2028112
2017-05-19 05:27:29 -07:00
Krunal Soni
d3676732ef qcacld-3.0: Remove serialization from set key req and rsp messages
Serialization is not required to deliver the set key request coming
from upper layer as well as set key response coming from lower layer.

Take the set key request coming through IOCTL thread, and directly
post the request to protocol layer. Similarly take the set key response
coming through worker thread, and post the request to protocol layer.

Change-Id: Idcd0047f6e323d982e3159f7ef376e6eeb201395
CRs-Fixed: 2046036
2017-05-19 05:27:27 -07:00
Abhishek Singh
d7bc91391a qcacld-3.0: Fix PMF regression for SAP
In PMF SAP case iface->rmfEnabled is not set and thus even
unprotected frames are received by driver and processed.

To fix this set iface->rmfEnabled while adding station.

Change-Id: I3cbe5d7d64ee0d38f64f9cf256ce338163edd302
CRs-Fixed: 2048364
2017-05-19 05:27:25 -07:00
Dustin Brown
edce4a571e qcacld-3.0: Fix WoW Pattern mem leak on unload
WoW patterns are maintained in an internal cache that is not cleaned
when the WLAN module is unloaded. Free the WoW pattern cache as part
of the WLAN module unload.

Change-Id: I1ebd1876555d01551542f7029f53a72af6773dbc
CRs-Fixed: 2044774
2017-05-19 05:27:23 -07:00
snandini
8e354f029d Release 5.2.0.26A
Release 5.2.0.26A

Change-Id: I76b3d75b06f0251d0ee095f976195c8bb1e3fcc4
CRs-Fixed: 774533
2017-05-18 13:42:33 -07:00
Yue Ma
6dbbb183a9 qcacld-3.0: Add PLD APIs to support athdiag read/write
Add PLD APIs to support athdiag read/write though QMI messages.

Change-Id: I4887065fa390c7e3374a7297103bd93d3d35c429
CRs-fixed: 2043584
2017-05-18 13:42:32 -07:00
Amar Singhal
6f8592b71c qcacld-3.0: Propagate dynamic channel list
When channel list changes dynamically; it needs to be
propagated to kernel and firmware. Do the propagation in
the callback registered by hdd.

Change-Id: I2c9fb92a9abf1c26a8c57ee8be65bd5556bb84a1
CRs-Fixed: 2012415
2017-05-18 13:42:31 -07:00
Kiran Kumar Lokere
b1d412e15d qcacld-3.0: Add support for regulatory component ucfg apis
Add support for regulatory component ucfg apis to provide user
configuration

Change-Id: I994e53b17788472de979df9dce9e18c6f68de850
CRs-Fixed: 2012415
2017-05-18 13:42:29 -07:00
snandini
90289d4a4d Release 5.2.0.26
Release 5.2.0.26

Change-Id: I407444f7b1aea0e7d547170aa2bf3215d72e7d97
CRs-Fixed: 774533
2017-05-18 13:01:30 -07:00
Tushnim Bhattacharyya
85bedb9349 qcacld-3.0: Fix compilation issue in sme
Add check for variable initialization in csr_get_snr.

Change-Id: Id2742c95187923153aeb691455030199c65dbc62
CRs-Fixed: 2049172
2017-05-18 13:01:29 -07:00
snandini
13a6734684 Release 5.2.0.25Z
Release 5.2.0.25Z

Change-Id: Ib06e7cb822bf51ed49808e6f247430e416e8caca
CRs-Fixed: 774533
2017-05-18 07:29:17 -07:00
Ganesh Kondabattini
ae1c6a21cd qcacld-3.0: Update session id for set hw mode command
e_sme_command_set_hw_mode is always requested on session id 0 even
though it is supposed to go on different session id. This is due to
not updating session id when posting e_sme_command_set_hw_mode
command to SME.

Update session id in e_sme_command_set_hw_mode command.

CRs-Fixed: 2041453
Change-Id: I211f8b4cda3ef4ce216c1957eeea812e0eec5dc7
2017-05-18 07:29:17 -07:00
Ganesh Kondabattini
1c6365ca44 qcacld-3.0: Validate roc_ctx before accessing
Check for NULL pointer before accessing the roc_ctx in function
"wlan_hdd_cancel_pending_roc".

Change-Id: Ic01f2776567f6fc7d9fc89523b78fc697fb625a8
CRs-Fixed: 2045861
2017-05-18 07:29:15 -07:00
snandini
97070ae8e9 Release 5.2.0.25Y
Release 5.2.0.25Y

Change-Id: I6d646d22ef3aad8b82c2333264cd723680b88db3
CRs-Fixed: 774533
2017-05-18 06:37:00 -07:00
Amar Singhal
cab1b4f7d9 qcacld-3.0: Initialize hal_reg_capabilities extension
In case the service ready extension event is not available from
firmware, the hal_reg_capabilities in psoc structure do not get filled
up. But pdev channel list depends on hal_reg_capabilities extension
having proper range values values for channels. Since MCL has only
single pdev, unconditionally fill up the values in psoc service ready
ext data structures..

Change-Id: Idb2c8525d5789078654c1cba8d841dea03841ae8
CRs-Fixed: 2048054
2017-05-18 06:37:00 -07:00
snandini
a1370d90a8 Release 5.2.0.25X
Release 5.2.0.25X

Change-Id: Ib71c2c975a03a1d5235fe47f209e43b21027850b
CRs-Fixed: 774533
2017-05-17 21:07:37 -07:00
Kabilan Kannan
e8602fd411 qcacld-3.0: Fix TDLS set state cmd sequence for roaming
Firmware expects TDLS set state cmd before vdev stop, but
the cmd is going out of sequence during roaming and induce
crash in the system.
Send the TDLS set state cmd with correct sequence.

Change-Id: Ie106b8a8cebaa7f107c9eff67dda924b231162da
CRs-Fixed: 2045961
2017-05-17 21:07:37 -07:00
snandini
5a1f09d11b Release 5.2.0.25W
Release 5.2.0.25W

Change-Id: I373df7dc5062582cb37979cf58e6a9b9f57a523d
CRs-Fixed: 774533
2017-05-17 18:36:56 -07:00
Sandeep Puligilla
80038def4d qcacld-3.0: Update scan channels for emulation
Update default scan channels list with following channels
2.4G: 1, 6, 11
5G active: 36,40 passive: 52, 56, 140

Change-Id: Ib08f5242a285ff391a1cd2e17e5c26154b32e31b
CRs-Fixed: 2043613
2017-05-17 18:36:55 -07:00
snandini
dc3346576c Release 5.2.0.25V
Release 5.2.0.25V

Change-Id: If45e9b25a00492b9dbcf4e14e99a73a36802f6e1
CRs-Fixed: 774533
2017-05-16 01:23:40 -07:00
Will Huang
be32c2f5eb qcacld-3.0: Reject AssocReq without cipher IE to security SAP
When client send AssocReq without any cipher suite IE to DUT's SAP
which has security configure, driver/hostapd will not reject/delete
this client, this client will associate but eapol process will not
happen, so this client tlSTAState will not change to
OL_TXRX_PEER_STATE_AUTH state, and it blocks DUT's STA scan because
cds_is_connection_in_progress check this state.

This change is to reject it from driver when AssocReq without any
cipher suite IE received from DUT's SAP which has security configure.

Change-Id: Ia9a3b0791ac36c3ee6d48cf6df97f47a3752bd16
CRs-Fixed: 2033663
2017-05-16 01:23:40 -07:00
snandini
0564873ab6 Release 5.2.0.25U
Release 5.2.0.25U

Change-Id: Id52b89ee37dd115fe1e35f3b7faabd76c450bec3
CRs-Fixed: 774533
2017-05-16 00:46:26 -07:00
snandini
e225c15ced Release 5.2.0.25T
Release 5.2.0.25T

Change-Id: I0e53ca0faf3520c30ec7289a0f232d38695a131d
CRs-Fixed: 774533
2017-05-15 19:22:14 -07:00
Yue Ma
f978284f35 qcacld-3.0: Bypass firmware VDEV deletion during SSR
Since firmware has already asserted, VDEV deletion will timeout
finally which will result VDEV release failure in host driver.
Bypass it in SSR shutdown routine.

Change-Id: Ib9a4b8a4d49edf8178a1da8201f8a7c6931f487f
2017-05-15 19:22:13 -07:00
Yue Ma
e3e86ab602 qcacld-3.0: Restore pdev for module start/stop and SSR cases
For module start/stop and SSR cases, pdev is reused so it needs to be
restored to MAC/WMA contexts again.

Change-Id: Ifce95437d2c32a71c9376164f821f4e27df38409
CRs-fixed: 2021415
2017-05-15 19:22:11 -07:00
Yue Ma
5fe30ddee8 qcacld-3.0: Increase SSR timeout for Napier emulation
Increase SSR timeout long enough to complete SSR for Napier
emulation.

Change-Id: Ia0ed2314dd0528f75cf2b56064e1c6cf76c2daec
CRs-fixed: 2021415
2017-05-15 19:22:09 -07:00
snandini
670ce74600 Release 5.2.0.25S
Release 5.2.0.25S

Change-Id: I13768c1b09289d85d161276bafef9088eaa7e285
CRs-Fixed: 774533
2017-05-12 19:58:09 -07:00
Kabilan Kannan
aad2f0320d qcacld-3.0: Fix TDLS set state cmd sequence
Firmware expects TDLS set state cmd before vdev stop, but
the cmd is going out of sequence and induce crash in the
system.
Send the TDLS set state cmd with correct sequence

Change-Id: I5be19d8d44f86b60eed162ee3798f34e87892b15
CRs-Fixed: 2042194
2017-05-12 19:58:08 -07:00
Mukul Sharma
c3886aad85 qcacld-3.0: Remove serialization for get link speed cmd
Currently, Host serialize get link speed command through
MC thread which is truly not required.Hence removing
serialization for get link speed cmd.

Change-Id: Ia2895394025056d4957856bb9bde0350b55d25ca
CRs-Fixed: 2042492
2017-05-12 19:58:07 -07:00
snandini
79f0ba6ffe Release 5.2.0.25R
Release 5.2.0.25R

Change-Id: Ia3f894d45fea71f682133180821c6df548681fa3
CRs-Fixed: 774533
2017-05-11 22:53:07 -07:00
Abhishek Singh
478886090e qcacld-3.0: Allocate proper size for the lim peer idx pool
In station role, peer idx pool's index 1 is reserved for BSS.
for TDLS the index should start from 2.

Thus for station role if number of supported peer is n, the peer
idx pool size should be n + 2

Thus set peer idx pool size to n + 2 if TDLS is enabled.

Change-Id: Ie1afb16bb4a7fb914142d27080dfa257bc9ffeac
CRs-Fixed: 2044524
2017-05-11 22:53:06 -07:00
snandini
f73e582912 Release 5.2.0.25Q
Release 5.2.0.25Q

Change-Id: Id6a019aa16ce9bd9015eff7aa70959931a65c096
CRs-Fixed: 774533
2017-05-11 03:47:29 -07:00
snandini
749af68f7f Release 5.2.0.25P
Release 5.2.0.25P

Change-Id: Ie6a883213b03b9c7b763e5dabb866f1c210b954e
CRs-Fixed: 774533
2017-05-11 02:13:31 -07:00
Abhishek Singh
69ccb5164f qcacld-3.0: Use common scan api to wait on scan to get completed
Add changes to use common scan api to wait on scan to get completed

Change-Id: I45181908a6a81de21e4ba906f54ae3190aa212d0
CRs-Fixed: 2038093
2017-05-11 02:13:30 -07:00
snandini
7f00499ee9 Release 5.2.0.25O
Release 5.2.0.25O

Change-Id: Id381cbcf298874181c43eae728d8269555bec292
CRs-Fixed: 774533
2017-05-11 01:26:13 -07:00
yeshwanth sriram guntuka
626b24560c qcacld-3.0: Fix excessive logs in pmkid lookup api
Fix excessive logs in pmkid lookup using bssid api.

Change-Id: Ica534fc1a8028c9a4e6cc2d8ae155fd81849c03c
CRs-Fixed: 2038017
2017-05-11 01:26:13 -07:00
Naveen Rawat
b677c242af qcacld-3.0: Fix mismatch between assoc ie length and ext cap
Assoc IE length sent in ROAM START cmd to firmware is cumulative len
of all the IEs passed to firmware. Update in Ext Cap was causing this
length value to be wrong. Update the Ext Cap IE length correctly when
updating Assoc IE length.

Change-Id: I3c4acf507d533896993a51c443407ecac290628a
CRs-Fixed: 2026407
2017-05-11 01:26:11 -07:00
Naveen Rawat
418d308c01 qcacld-3.0: Do not disable Roaming if multiple STA are active
Do not disable Roaming if multiple STA are active, individual STA
session are controlled by adapter->fast_roaming_allowed.

Change-Id: Ic979f4addd3b9e4f940291817c9a797302e3ac66
CRs-Fixed: 1104238
2017-05-11 01:26:09 -07:00
Jayachandran Sreekumaran
68c952c716 qcacld-3.0: Add acs config parameter acs_policy
A new external acs configuration parameter acs_policy.
This parameter indicates the external ACS module whether
its mandatory or preferrable to select a channel
from the preferred channel list provided by the
driver

Change-Id: I80925109349c68c95f25ba27d87bd68964c4eb04
CRs-Fixed: 2037034
2017-05-11 01:26:07 -07:00
snandini
256d67d383 Release 5.2.0.25N
Release 5.2.0.25N

Change-Id: Idb74cc8cf5261b48320afce6aaea0e4df6634d1e
CRs-Fixed: 774533
2017-05-08 15:41:35 -07:00
Dhanashri Atre
e08ba71363 qcacld-3.0: Do not typecast physical address to 32 bits
Do not typecast the physical address passed to hash list to
32 bits. The physical address maybe greater than 32 bits which
will lead to a mismatch during look-up.

Change-Id: I095e1e63c59da74bc8a2507273e7c6487d0b19e7
CRs-Fixed: 2044161
2017-05-08 15:41:34 -07:00
snandini
c897b6e4f7 Release 5.2.0.25M
Release 5.2.0.25M

Change-Id: Ib80dc9bf4833be3a2d4990908af4c356a16315f2
CRs-Fixed: 774533
2017-05-08 14:59:11 -07:00
SaidiReddy Yenuga
e14cfb8f9e qcacld-3.0: Remove unused external acs attribute
QCA Vendor attribute QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAC_ADDR
not getting used.

Remove unused QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAC_ADDR.

CRs-Fixed: 2042698
Change-Id: I78fea514f0039edec1973bc06834c4973ab36f4a
2017-05-08 14:59:09 -07:00
snandini
62dedf4056 Release 5.2.0.25L
Release 5.2.0.25L

Change-Id: I8b1e733f70592351b1376addd9e5767927b726e0
CRs-Fixed: 774533
2017-05-07 07:51:54 -07:00
snandini
39de761c3f Release 5.2.0.25K
Release 5.2.0.25K

Change-Id: I6453d8d6e78f307b12a82e200cfc4bb57b7a6278
CRs-Fixed: 774533
2017-05-05 13:00:18 -07:00
Manikandan Mohan
1dd8b5d47e qcacld-3.0: Fix kernel module check patch warnings in WMA files
Fix kernel module check patch warnings in WMA files

Change-Id: I236fc58152787a7ee906e5aa7d19f917ac69a17a
CRs-fixed: 2030824
2017-05-05 12:05:08 -07:00