Commit Graph

849 Commits

Author SHA1 Message Date
Kiran Kumar Lokere
52f4a84b2a qcacld-3.0: Reduce the max join attempts for connection
Limit the max join attempts to half of the command timeout value

Change-Id: I0448011ed17c6e90f0ac39c9de57bb32a14ecc31
CRs-Fixed: 2105407
2017-09-18 15:37:27 -07:00
yeshwanth sriram guntuka
6d261f883f qcacld-3.0: Set join failure timeout value in bss config
Join failure timeout value is set to 10 times beacon
interval. If 10 times beacon interval is greater than
max join failure timeout value, global join failure
timeout cfg value is not set which results in connection
failure.

Set join failure timeout value in bss config to the
default join failure timeout value if 10 times beacon
value exceeds default value.

Change-Id: I835256ba07a714cb0606c6e90964475fc112c4b4
CRs-Fixed: 2100633
2017-09-15 17:26:53 -07:00
Varun Reddy Yeturu
061d4d63e4 qcacld-3.0: Introduce INI items for MAWC based roaming
Introduce the following items in WCNSS_qcom_cfg.ini for
user to modify them for MAWC based roaming.

mawc_roam_enabled
mawc_roam_traffic_threshold
mawc_roam_ap_rssi_threshold
mawc_roam_rssi_high_adjust
mawc_roam_rssi_low_adjust

Change-Id: Ief51e3e91603bfd7f6c6deed3ca48bc717b2b6fb
CRs-Fixed: 2081413
2017-09-14 13:26:37 -07:00
Jeff Johnson
30f8455ee1 qcacld-3.0: Remove cds context from struct sAniGetTsmStatsReq
Currently struct sAniGetTsmStatsReq contains a p_cds_context field,
but this field is unused. Remove the field along with all of the code
that is present to populate it.

Change-Id: I1335034b959b77223834d7cf77e33c1f9bd1b358
CRs-Fixed: 2109433
2017-09-14 06:51:58 -07:00
Jeff Johnson
4f51934a73 qcacld-3.0: Remove sme_set_idle_powersave_config() cds_ctx param
Currently sme_set_idle_powersave_config() takes a cds_ctx
parameter. At one time this was needed for the call to
cds_get_context(), but that is no longer the case, so remove this
unused parameter.

Change-Id: Iacef39eded8d87a22a30fe62b0305f93e604dc4c
CRs-Fixed: 2109431
2017-09-14 06:51:58 -07:00
Arif Hussain
a98a87b7e4 qcacld-3.0: Fix NULL pointer access in sme_qos_process_add_ts_success_rsp
Make sure to validate pCurRoamProfile before
dereferencing it to avoid NULL pointer access.

Change-Id: Ic2f68b9cfe352d903bebba163ccfe253e04dfcdb
CRs-Fixed: 2083710
2017-09-13 13:27:01 -07:00
Jeff Johnson
a14a3acaf9 qcacld-3.0: Remove csr_set_opposite_band_channel_info()
csr_internal.h exports csr_set_opposite_band_channel_info() but the
function is no longer present, so remove the obsolete prototype.

Change-Id: I7a5c775ae80c28bd23972df7e4dfddbead6040a5
Crs-Fixed: 2108359
2017-09-12 19:54:33 -07:00
Jeff Johnson
6061a01ba2 qcacld-3.0: Remove csrScanSetChannelMask() prototype
csr_internal.h exports csrScanSetChannelMask() but the function is not
present, so remove the obsolete prototype.

Change-Id: I405cc2d9aa12cce15c58118d335a7eeb2b863b70
CRs-Fixed: 2108357
2017-09-12 19:54:30 -07:00
Jeff Johnson
634f2ff71c qcacld-3.0: Remove csrScanFilter11dResult() prototype
csr_internal.h exports csrScanFilter11dResult() but the function is no
longer present, so remove the obsolete prototype.

Change-Id: Ie163dc247d47feeb0d6b5a33aa5d78d6fefbc167
CRs-Fixed: 2108355
2017-09-12 19:54:28 -07:00
Jeff Johnson
99c797212d qcacld-3.0: Remove csr_scan_copy_result_list() prototype
csr_inside_api.h exports csr_scan_copy_result_list() but the function
is no longer present, so remove the obsolete prototype.

Change-Id: Ifcc6175325e4cd7a4f04dfbbab817efd672df4c9
CRs-Fixed: 2108354
2017-09-12 19:54:26 -07:00
Jeff Johnson
797ef7c98b qcacld-3.0: Remove csrScanAbort() prototype
csr_inside_api.h exports csrScanAbort() but the function is no longer
preset, so remove the obsolete prototype.

Change-Id: I9ad67836ff45dc9d36185a98f2e5cc7cea70eebc
CRs-Fixed: 2108353
2017-09-12 19:54:24 -07:00
Jeff Johnson
6a5729b35d qcacld-3.0: Remove csr_roam_is_valid40_mhz_channel()
sme_inside.h exports csr_roam_is_valid40_mhz_channel() but the
function is no longer present, so remove the obsolete prototype.

Change-Id: Iea9d46584b038daed1cb690d8036a7fc86ea204e
CRs-Fixed: 2108352
2017-09-12 19:54:21 -07:00
Jeff Johnson
43a80b94d6 qcacld-3.0: Remove csr_roam_issue_ft_roam_offload_synch()
csr_api.h exports csr_roam_issue_ft_roam_offload_synch() but the
function no longer exists, so remove the obsolete prototype.

Change-Id: Ida6f00bc9615c0f50824e4f4a92b75c723d342af
CRs-Fixed: 2108351
2017-09-12 19:54:18 -07:00
Kiran Kumar Lokere
d057b7203b qcacld-3.0: Advertise MU Bfee support only if AP supports MU Bfer
Advertise the MU beamformee capability in association request frame
only if the MU beamformer is supported by AP.

Change-Id: Ib962af73189ace27db40973e065e40913ecb7728
CRs-Fixed: 2095251
2017-09-12 18:09:39 -07:00
Sandeep Puligilla
37e4b2257a qcacld-3.0: update obj manager API definition
update object manager API definition according
to the common driver change.

Change-Id: I6305f405bd2d11bda5217c205f4572cb82910510
CRs-Fixed: 2069665
2017-09-12 05:27:38 -07:00
gaurank kathpalia
14e2f91174 qcacld-3.0: Fix kernel checkpatch warnings in csr_internal.h
Fix kernel checkpatch warnings in csr_internal.h

Change-Id: If7c869e9445853310209a1d3dca420634f95218e
CRs-Fixed: 2025503
2017-09-12 05:27:36 -07:00
Jeff Johnson
33189d0e78 qcacld-3.0: Remove obsolete csr_msg_processor() code
Currently csr_msg_processor() contains logic that is conditionally
compiled based upon ANI_RTT_DEBUG and ANI_EMUL_ASSOC. These are
obviously obsolete references since these are the only references in
the code, and since they are referencing a variable that is not
present in the function. Since these are obsolete, remove them.

Change-Id: Ie258f188dd2791be96f2e95fcf4e8a71c4ea44eb
CRs-Fixed: 2103630
2017-09-12 01:26:10 -07:00
gaolez
e510894670 qcacld-3.0: Add new params in ACS calc process
qcacld-2.0 to qcacld-3.0 propagation

Before this change the ACS calc process only consider the
channel's rssi and bss count in this channel, in this change
add noise floor, channel free statistics and tx power in the
ACS calc process.

Change-Id: I654e53fa2441e03723f150d973c124985c67f2b4
CRs-fixed: 1050316
2017-09-11 23:27:25 -07:00
Tushnim Bhattacharyya
518e80fc94 qcacld-3.0: Add the DFS MCC check in ACS algorithm
During channel selection for SAP via ACS, add check if there is
a connection on 5Ghz, don't allow SAP to select DFS channel.

Change-Id: If6e42cbc584ddb80588daf138d94d2e0a75b882a
CRs-Fixed: 2102024
2017-09-11 12:16:33 -07:00
Arif Hussain
fdb25e2022 qcacld-3.0: Fix memory leak in sme
In some places memory allocated for the parsed IE’s
using csr_get_parsed_bss_description_ies are freed only
if existing IE description is NULL. Even though memory
allocation not done based on above condition, this may
lead to memory leak..

To fix this make sure to check existing IE description
while allocating memory.

Change-Id: Ia065b9ebb4cbd00f48f3cdca8737190b3609e1c7
CRs-Fixed: 2002298
2017-09-11 12:16:29 -07:00
Tushnim Bhattacharyya
c3c375e5e9 qcacld-3.0: Use lockless sme API to get valid channel list from sme
Use lockless sme API to get valid channel list from sme instead of
sme_get_cfg_valid_channels to avoid deadlock.

Change-Id: I481824cb116244b9c13665d6a0ee88e28c88cf66
CRs-Fixed: 2063060
2017-09-08 14:28:18 -07:00
Tushnim Bhattacharyya
1f3a123652 qcacld-3.0: Handle no common channel between PCL and the favorite channel list
Handle the scenario where no common channel between PCL & the
favorite channel list is found.

Change-Id: I560d7ef861d89f3f4a0c63afacd0ffbf6aaa976e
CRs-Fixed: 2063060
2017-09-08 14:28:14 -07:00
Tushnim Bhattacharyya
03103fd070 qcacld-3.0: Add logic to force SCC in SAP+STA concurrency with ACS
If STA is up & SAP is comings up on a ACS derived channel causing MCC,
move SAP to the other band if DBS is supported. This logic is enabled
only if gWlanMccToSccSwitchMode is set to
QDF_MCC_TO_SCC_SWITCH_FORCE_WITHOUT_DISCONNECTION.

Change-Id: I48d809f83921292f51ca1735bff4c4d6dd339975
CRs-Fixed: 2063060
2017-09-08 14:28:10 -07:00
Jeff Johnson
9908f80e2f qcacld-3.0: Remove g_cds_context from tCsrRoamStruct
Currently tCsrRoamStruct contains a g_cds_context field to hold a
pointer to the global context. This pointer is never actually used, so
remove it. In addition remove an unnecessary retrieval of the global
context pointer from csr_packetdump_timer_stop().

Change-Id: Id8137d6e9eef87f90c01f803982a6ffdc44fbe20
CRs-Fixed: 2102464
2017-09-08 01:03:46 -07:00
Jeff Johnson
abb7404d2b qcacld-3.0: Remove unused wma_get_wcnss_software_version() param
Currently wma_get_wcnss_software_version() takes a p_cds_gctx
parameter which it does not use, so remove it.

Change-Id: I86a5893a9407bad034a32c105aec92d4e6054744
CRs-Fixed: 2102549
2017-09-07 22:52:18 -07:00
Jeff Johnson
1796f6a81b qcacld-3.0: Remove cds_context from tp2pContext
The cds_context in tp2pContext is unused, so remove it.

Change-Id: I0250847eb975db3e606ab867ce74fceb28d99e44
CRs-Fixed: 2102488
2017-09-07 16:51:38 -07:00
Naveen Rawat
e1fbbe0f64 qcacld-3.0: Make sure join timeout value is less than max allowed
Join timeout value is taken as 10 times beacon interval, however if
beacon interval is very large, this will make join timeout value to
exceed allowed max, causing join process failure. Make sure to keep
join timeout value less than max allowed.

Change-Id: If2167e602e3231403fbe2ab1936769f2a1b31383
CRs-Fixed: 2100819
2017-09-07 09:33:32 -07:00
Sandeep Puligilla
ef41536a85 qcacld-3.0: Delete vdev object before sme close session
- Flush the active scan list during sme close
session
- Close sme session before deleting the vdev
object.

Change-Id: I8dd8fc794231a613e72089a01ddee5796b56abb7
CRs-Fixed: 2103543
2017-09-06 22:52:30 -07:00
Krunal Soni
3378790ded qcacld-3.0: Use updated serialization api to purge the commands
Few enhancements are made in serialization module to flush the commands
per vdev. Use updated serialization API to accommodate new changes.

Change-Id: I8df9900d83bea758ca5c50cbe0edf31e06f83a4c
CRs-Fixed: 2099063
2017-09-06 22:52:28 -07:00
Abhishek Singh
5d8d7332fc qcacld-3.0: Reduce the log spam in Kmsg
Move the logs to appropriate log levels to reduce
the log spam in kmsg

Change-Id: I2138de8f2be2e432ba84ee0615c14946da228fc9
CRs-Fixed: 1093093
2017-09-04 00:12:41 -07:00
Abhishek Singh
e4a1f88512 qcacld-3.0: Reduce the log spam in sme_api.c
Move the logs to appropriate log levels to reduce
the log spam in sme_api.c

Change-Id: Ie3f663c646837652fce5fab008bbcc7286ae8b83
CRs-Fixed: 1093093
2017-09-03 22:33:15 -07:00
Abhishek Singh
2c77d7d192 qcacld-3.0: Reduce the log spam in sme_power_save.c
Move the logs to appropriate log levels to reduce
the log spam in sme_power_save.c and sme_trace.c

Change-Id: I3d3c4e35db8dc8b94bf5e71be79dc4dd7958762c
CRs-Fixed: 1093093
2017-09-03 22:33:10 -07:00
Abhishek Singh
245182fcba qcacld-3.0: Reduce the log spam in csr_api_roam.c
Move the logs to appropriate log levels to reduce
the log spam in csr_api_roam.c

Change-Id: I583c149bb8dd9768d8a06bbf87fc24d296bcab12
CRs-Fixed: 1093093
2017-09-03 22:33:06 -07:00
Abhishek Singh
438cd7ea60 qcacld-3.0: Reduce the log spam in csr_api_scan.c
Move the logs to appropriate log levels to reduce
the log spam in csr_api_scan.c

Change-Id: I2bb870f5b784b24cf47307ddffcc12a67ea40d70
CRs-Fixed: 1093093
2017-09-03 22:33:01 -07:00
Abhishek Singh
7bdb19cbef qcacld-3.0: Reduce the log spam in csr files
Move the logs to appropriate log levels to reduce the
log spam in csr_neighbor_roam.c, csr_roam_preauth.c,
csr_tdls_process.c and csr_util.c

Change-Id: Ib59c127591f41664593fd66a423a3153ceabd18e
CRs-Fixed: 1093093
2017-09-03 22:32:57 -07:00
Abhishek Singh
b59f8d40ee qcacld-3.0: Use user provided BW for 2.4Ghz HT connection
Add support to use user provided BW for 2.4Ghz HT connection.
If HT capability in connect req indicate connection in HT20, force
the connection in 2.4Ghz to HT20 only even if AP support HT40.

Added ini override_ht20_40_24g to enable/disable this feature.

Change-Id: Ia03b67b9d6487e3e27f1cf8875afe95af1300b4f
CRs-Fixed: 2084929
2017-08-31 11:00:42 -07:00
Sridhar Selvaraj
0d5d2c745c qcacld-3.0: Add Support for FILS Association
Adds the following  support:
1) Add FILS IE's to assoc request.
2) AEAD encrypt/decrypt the assoc request/response frames for FILS
3) Process/Verify the Assoc response for the FILS params
4) Plumb the Auth keys to firmware after successful FILS assoc
5) Update the user space with Auth key details

Change-Id: I57f6319cecdf10e08047b510321b885c3cd711b5
CRs-Fixed: 2030038
2017-08-30 17:43:53 -07:00
Dustin Brown
b3e0fbb304 qcacld-3.0: Fix csr_inside_api.h header guard
The header guard within csr_inside_api.h ends before the end of the
file. Move the end of the header guard to the end of the file.

Change-Id: I7c9e62b9eaee8815f6d1e496d88b6b79f489299b
CRs-Fixed: 2090171
2017-08-30 10:45:56 -07:00
Sridhar Selvaraj
8c6f5e82b0 qcacld-3.0: Changes to support FILS authentication
Add changes to add support of sending and parsing
authentication packets based on 80211ai specifications.

Change-Id: I684dbc89945ba3aef3186c872e5e1f7564d7e44c
CRs-Fixed: 2028113
2017-08-30 10:45:10 -07:00
Sridhar Selvaraj
c3684c78f7 qcacld-3.0: Support for PMKSA caching
Add support for PMK and PMKID cache based on either bssid or
ssid + cache identifier.

Change-Id: I23c50472e4c2032b953ccf264fc4cadb2ea573ca
CRs-Fixed: 2028113
2017-08-30 10:44:50 -07:00
Sridhar Selvaraj
6cf642fe04 qcacld-3.0: Changes to support FILS AKMs
Add changes to support and parse AKM required for FILS support.

Change-Id: I64f692c3e8173b778fcd4ca6ac2391b8de2bc1d2
CRs-Fixed: 2028113
2017-08-30 10:44:46 -07:00
Sridhar Selvaraj
a44c19ee19 qcacld-3.0: Add changes to parse fils indication element
Add changes to parse fils indication element and add the info
to bss descriptor for further use.

Change-Id: If4b56435180a226438c9f0afdda0f58a26854d88
CRs-Fixed: 2028113
2017-08-30 10:44:42 -07:00
Dustin Brown
100201ecca qcacld-3.0: Avoid recovery trigger while recovering
Currently, cds_trigger_recovery is unconditional. Instead, avoid
triggering recovery if recovery is already in progress.

Change-Id: I5c77048701930591e0e520e07275e6f8631108a0
CRs-Fixed: 2070845
2017-08-30 10:43:49 -07:00
Dustin Brown
bcb82d5fae qcacld-3.0: Avoid uninitialized timer check in ps timer flush
In some cases, some auto powersave timers are never initialized. Change
sme_ps_timer_flush_sync to avoid checking the timer state of such
uninitialized timers.

Change-Id: I0bccca6835238d1d69c71f39fc0ae5a8eee56d23
CRs-Fixed: 2089350
2017-08-30 10:42:27 -07:00
lifeng
d217d19d7e qcacld-3.0: Add vendor cmd to support antenna diversity
qcacld-2.0 to qcacld-3.0 propagation

Add qca_wlan_vendor_config attr to config antenna diversity.
Add vendor subcmd QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI
to get chain rssi value.

Change-Id: I75c4c8016b15772b0c52be91e446f69580475496
CRs-fixed: 1071075
2017-08-30 10:41:53 -07:00
Abhishek Singh
12be60f54b qcacld-3.0: Fix kernel checkpatch warnings in sme_qos_api.h
Fix kernel checkpaitch warnings in sme_qos_api.h

Change-Id: Ib811dcf0b664a2677343a276708d852f4bb67346
CRs-Fixed: 2025503
2017-08-30 10:41:27 -07:00
Dustin Brown
0e4479e27e qcacld-3.0: Add aggregate stats support for SAP
The cfg80211 get_station callback is not intended for use with
non-station device types. However, it is useful to expose aggregate
statistics for non-station type devices. Add support for returning
aggregate statistics when get_station is used with a soft access point
device.

Change-Id: I8ae32c307f241525a7d74467328d9d40dc805053
CRs-Fixed: 2077011
2017-08-30 10:41:01 -07:00
Zhang Qian
32fd43e7d0 qcacld-3.0: Correct cached connection info
qcacld-2.0 to qcacld-3.0 propagation

The variables used for cached ssid and authentication type will be cleared
after disconnection, hence user will get incorrect info from vendor
event after disconnection.

Use separate variables to save last ssid and auth info.

This is to fix issues of change I5b64d9942a54d35eac0f08b4d8fbed9d1d66a504.

Change-Id: Icc1a5d53e33d650726905e50e4846b77b10cf4ee
CRs-Fixed: 2098560
2017-08-30 10:40:44 -07:00
Linux Build Service Account
1b248de915 Merge "qcacld-3.0: Channel hopping for 2_4G and 5G band" 2017-08-24 12:11:15 -07:00
Mukul Sharma
05504acc13 qcacld-3.0: Add support of GCMP (128/256) support
Add support of GCMP (128/256) security ciper support.

Change-Id: I3c9cb3dc72cce0a2cae3e468d3c1f3c004e11adf
CRs-fixed: 2056168
2017-08-24 03:07:11 -07:00