Commit Graph

10848 Commits

Author SHA1 Message Date
Bala Venkatesh
5479cf853f qcacld-3.0: Skip CAC and ignore radar indication for SAP
If STA is already connected on DFS channel and SAP is going to start
on the same channel then skip the CAC for SAP.
If STA and SAP sessions are already operating on same DFS channel,
then ignore radar indication received on SAP interface.

CRs-Fixed: 2130000
Change-Id: Ife0ab6979a07c8773001a43f5a30c9a555dab37a
2018-06-28 03:10:54 -07:00
Anurag Chouhan
47cb171622 qcacld-3.0: Fix compilation error for LE targets
Fix compilation errors for the LE target.

Change-Id: Id6e6d88fba3c70ee0f680a19dfa0c1ab29e34a02
2018-06-28 03:10:51 -07:00
nshrivas
db1d88da3e Release 5.2.0.85U
Release 5.2.0.85U

Change-Id: I3cf48ca415ebc511dce22295585a289c7e128291
CRs-Fixed: 774533
2018-06-27 22:16:37 -07:00
Varun Reddy Yeturu
363809c17a qcacld-3.0: Set disconnection in progress after starting disconnect
Currently, discon_in_progress flag is set in SME from HDD when
there is a disconnection request. But after setting the flag it
may wait for any on-going roaming to complete.Doing this may
unnecessarily stop the on-going roaming process. Hence set the
flag after completing the wait time and during the actual time
when the disconnection is about to be started in SME layer.

Change-Id: Ie91049ef2e385ff86d8aa6881799caf432a7e8a5
CRs-Fixed: 2266432
2018-06-27 22:16:37 -07:00
nshrivas
c024ebf15a Release 5.2.0.85T
Release 5.2.0.85T

Change-Id: I092d16b10f8521a8ae3dad92c2a6f54a1dd92bcc
CRs-Fixed: 774533
2018-06-27 18:58:39 -07:00
Jeff Johnson
ec56395f88 qcacld-3.0: Pass correct pointer type to mac_open()
In cds_open() the call to mac_open() currently passes a pointer to the
gp_cds_context->mac_context field. This is a void * field but
mac_open() expects a mac_handle_t * (aka tHalHandle *). This currently
compiles because mac_handle_t is itself a void *. But in the future
the underlying type of mac_handle_t will change, so pass a pointer to
an object of the correct type to mac_open().

Change-Id: Ie3e54c5288bc7d1e9287f30d997b005a5c8dc2ef
CRs-Fixed: 2268813
2018-06-27 18:58:38 -07:00
Jeff Johnson
a67929a3a0 qcacld-3.0: Correctly call sme scan APIs from rrm
The sme scan APIs sme_scan_get_result(), sme_scan_result_get_first(),
sme_scan_result_get_next() all take a mac_handle_t (aka tHalHandle) as
the first parameter. However in sme_rrm_send_scan_result() currently a
tpAniSirGlobal is being passed. Even though these ultimately reference
the same structure, an upcoming change will enforce type safety so
update the code to pass a parameter of the correct type.

Change-Id: I83e585bc91cbd9eeab5ecdeae0274196c98f3b4f
CRs-Fixed: 2268812
2018-06-27 18:58:34 -07:00
Jeff Johnson
c18469b4c7 qcacld-3.0: Correctly call sme cfg APIs
The sme cfg APIs sme_cfg_get_int(), sme_cfg_set_int(),
sme_cfg_get_str(), and sme_cfg_set_str() all take a mac_handle_t (aka
tHalHandle) as the first parameter. However in some cases the caller
is actually passing a tpAniSirGlobal. Even though these ultimately
reference the same structure, an upcoming change will enforce type
safety so update the bad callers to pass a parameter of the correct
type.

Change-Id: I7f602c2c6c25f15efe239cb1ba2c0c8e5bfd3e0a
CRs-Fixed: 2268811
2018-06-27 18:58:31 -07:00
Jeff Johnson
ff26c61989 qcacld-3.0: Fix csr_set_channels() context param
Currently csr_set_channels() takes a tHalHandle context param.
However csr is internal to the UMAC, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: Idf260cce60cd436ac871b4df3620cf1baf2b06c3
CRs-Fixed: 2268810
2018-06-27 18:58:27 -07:00
Jeff Johnson
0c4f48175e qcacld-3.0: Correctly call sme_get_rssi_snr_by_bssid()
Currently csr_dump_connection_stats() passes a tpAniSirGlobal to
sme_get_rssi_snr_by_bssid() but a tHalHandle is expected, so correct
the call to pass the correct parameter.

Change-Id: I51216e2636a88fea30b007dcc5eee95000cafe60
CRs-Fixed: 2268809
2018-06-27 18:58:23 -07:00
Jeff Johnson
c074933e90 qcacld-3.0: Fix bad csr_parse_bss_description_ies() typecast
In csr_roam_call_callback() there is a call to
csr_parse_bss_description_ies() where the MAC context is typecast to
tHalHandle as part of the function call. However this typecast is
incorrect since csr_parse_bss_description_ies() expects to get a MAC
context. Due to the manner in which tHalHandle is defined this does
not current cause a build issue, but an upcoming change will enforce
type checking so update this call to remove the inappropriate
typecasts.

Change-Id: I16e1f33e6f00ed1c610511a60f5974f0f0d71cd5
CRs-Fixed: 2268807
2018-06-27 18:58:20 -07:00
Jeff Johnson
ed3de52ce5 qcacld-3.0: Correctly call sme_rrm_neighbor_report_request()
Currently sme_neighbor_report_request() passes a tHalHandle to
sme_rrm_neighbor_report_request(), but a tpAniSirGlobal is expected,
so correct the call to pass the correct parameter.

Change-Id: I4a9ba52ef0a6e345d784937f645cf926bebf8919
CRs-Fixed: 2268806
2018-06-27 18:58:16 -07:00
Jeff Johnson
46841a5e1c qcacld-3.0: Correctly call sme_ft_open()/close()
Currently csr passes a tpAniSirGlobal to sme_ft_open() and
sme_ft_close() but a tHalHandle is expected, so correct the calls to
pass the correct parameter.

Change-Id: I1b33aff2aa9f9ca09384e643aad4e36e79c52af3
CRs-Fixed: 2268804
2018-06-27 18:58:13 -07:00
Jeff Johnson
1d3f867e4d qcacld-3.0: Correctly call csr_scan_flush_selective_result()
Currently sme_scan_flush_p2p_result() passes a tHalHandle to
csr_scan_flush_selective_result(), but a tpAniSirGlobal is expected,
so correct the call to pass the correct parameter.

Change-Id: Ibee01bb0606fc3d8a294b455f09c76823b8043bc
CRs-Fixed: 2268803
2018-06-27 18:58:09 -07:00
Jeff Johnson
a1a36512c3 qcacld-3.0: Correctly call csr_scan_flush_result()
Currently sme_scan_flush_result() passes a tHalHandle to
csr_scan_flush_result(), but a tpAniSirGlobal is expected,
so correct the call to pass the correct parameter.

Change-Id: I618ed5e16752eb6910060389f7c645b4e9ef5c83
CRs-Fixed: 2268802
2018-06-27 18:58:06 -07:00
Jeff Johnson
1b56f6bfc9 qcacld-3.0: Correctly call csr_scan_get_result_for_bssid()
Currently sme_scan_get_result_for_bssid() passes a tHalHandle to
csr_scan_get_result_for_bssid(), but a tpAniSirGlobal is expected, so
correct the call to pass the correct parameter.

Change-Id: I7fd7c06f320e14278cb621415bc4631d9c83b5d4
CRs-Fixed: 2268801
2018-06-27 18:58:03 -07:00
nshrivas
d84ba4f880 Release 5.2.0.85S
Release 5.2.0.85S

Change-Id: Ic433393d867eeccef6e58daf7ca524f8f510a7a5
CRs-Fixed: 774533
2018-06-27 17:41:09 -07:00
Dustin Brown
2946296b04 qcacld-3.0: Check pdevs in hdd_check_for_leaks
Before checking for other kinds of resources leaks, check to ensure all
objmgr pdevs have been properly freed.

Change-Id: I026a9e7497f593ba1d69fe220bbe0a33828811d3
CRs-Fixed: 2267144
2018-06-27 17:41:09 -07:00
Himanshu Agarwal
170b497c19 qcacld-3.0: Avoid beacon parsing on channels not in scan list for ACS
When STA is already up on some 2.4Ghz channel and SAP needs to be started
on some 5Ghz channel through ACS, scan channel list contains only 5Ghz
channels. But scan results contains beacons on STA 2.4Ghz channel as well
which is getting parsed contributing to bsscount and rssi on that 2.4Ghz
channel which should not be the scenario as bsscount should be 0 and rssi
should be -100 on this 2.4Ghz channel as it is not present in the scan
channel list sent by HOST to fw.

Avoid beacon parsing on all the channels other than the channels present
in ACS scan channel list.

Change-Id: I85ab967386b19748c32e98a7e468d471e31f9b9a
CRs-Fixed: 2266170
2018-06-27 17:41:06 -07:00
nshrivas
3bd8c70606 Release 5.2.0.85R
Release 5.2.0.85R

Change-Id: I45ceb260feee7a76a3d758994a0f9b4d98c5bbd7
CRs-Fixed: 774533
2018-06-27 16:14:15 -07:00
Venkata Sharath Chandra Manchala
27a4296314 qcacld-3.0: Enable QCA6390
1. Enable emulation flags for QCA6390 bring up.
2. Select QCA6390 header files based on
   CONFIG_QCA6390_11AX flag.
3. Compile API's based on QCA_WIFI_QCA6390 flag.

Change-Id: I6330c734587ef772b25e722762e194eadd043d28
CRs-Fixed: 2259314
2018-06-27 16:14:14 -07:00
Krunal Soni
8a06d83ca8 qcacld-3.0: Don't process scan command when vdev delete is in process
When driver performs vdev delete operation, it changes vdev state
to logically deleted or physically deleted only after receiving vdev
delete command's response from FW. In between (sending vdev del req
and receiving vdev del rsp) if thread gets pre-empted and other thread
start posting command (like scan command) to process then it could
lead to use after free scenario.

Notify scan component when vdev delete is intiated and let scan
component record that in to vdev's scan private object as one of the
flags.

check this flag before processing the scan command.

CRs-Fixed: 2265542
Change-Id: Id884d6c42cd8766e70835808863632e096158487
2018-06-27 16:14:12 -07:00
nshrivas
ccd1c74461 Release 5.2.0.85Q
Release 5.2.0.85Q

Change-Id: If172edd90bce7b613ef75dc007464074ab608373
CRs-Fixed: 774533
2018-06-27 12:04:46 -07:00
jitiphil
4e8e8b22d2 qcacld-3.0: Excessive logging from IPA
WLAN logs are excessively filled with
IPA logs when IPA performance level
is set.

Remove unnecessary logging in
hdd_ipa_set_perf_level().

Change-Id: I07563c1a6e98981e2b074bce7a969c9cbd94ec24
CRs-Fixed: 2268632
2018-06-27 12:04:45 -07:00
nshrivas
878a1eddc4 Release 5.2.0.85P
Release 5.2.0.85P

Change-Id: I8aad2106cffcac453f91e8930d30d70a77505a90
CRs-Fixed: 774533
2018-06-27 07:24:30 -07:00
Nirav Shah
5847628edc qcacld-3.0: Add defconfig file for Genoa pci and sdio attach
Add new defconfig file for Genoa pci and sdio attach.

Change-Id: I0b2800c6a2557201be94859a54aa8a821ab65e7c
CRs-Fixed: 2267921
2018-06-27 07:24:29 -07:00
nshrivas
b7dbf88839 Release 5.2.0.85O
Release 5.2.0.85O

Change-Id: I5006cdd89580a8a2961e08cb550dd85bba3110bb
CRs-Fixed: 774533
2018-06-27 05:32:51 -07:00
Nirav Shah
c8047a8a63 qcacld-3.0: Enable Flow Control Resize feature for Genoa
Enable Flow Control Resize feature for Genoa

Change-Id: I72640fc5847441111a904e1af5279ec87b46830f
CRs-Fixed: 2267979
2018-06-27 05:32:51 -07:00
nshrivas
efd997de07 Release 5.2.0.85N
Release 5.2.0.85N

Change-Id: Ife92303612d380f0b764b14d6fe00a47a3abc018
CRs-Fixed: 774533
2018-06-27 03:44:42 -07:00
Nirav Shah
1575dd7421 qcacld-3.0: Define new configuration parameters
Currently define flags CONFIG_PLD_SDIO_CNSS and
CONFIG_PLD_PCIE_CNSS are inferred by examining
two different configuration options in kbuild.
In order to configure it from defconfig files
create new configuration parameters
CONFIG_PLD_SDIO_CNSS_FLAG and
CONFIG_PLD_PCIE_CNSS_FLAG. Enable PCIE_CNSS_FLAG
only in case of PCIE build.

Change-Id: Ia1038f4aaf25f949005ec41c405232ec9981c988
CRs-Fixed: 2267172
2018-06-27 03:44:41 -07:00
Min Liu
ef92ef599c qcacld-3.0: Fix assert when netdev is going down
Move destruction of blocked_scan_request_q and related lock
from __hdd_netdev_notifier_call to hdd_close_adapter
for the former one might be invoked for more than once and
could cause issues.

Change-Id: Ifb62750a09a2dcca381217a41280ad943942ee35
CRs-Fixed: 2267481
2018-06-27 03:44:38 -07:00
Jeff Johnson
1652836585 qcacld-3.0: Use mac_handle_t in wlan_hdd_main
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_main to use the new naming.

Change-Id: If9ddbe0935d859d4c71dc11576cd7062a715b3e9
CRs-Fixed: 2267227
2018-06-27 03:44:35 -07:00
Jeff Johnson
3f1b15c421 qcacld-3.0: Use mac_handle_t in wlan_hdd_he (2)
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern name
for what was previously called the tHalHandle. Subsequently change
"qcacld-3.0: Use mac_handle_t in wlan_hdd_he" transitioned wlan_hdd_he
to use the new naming. But subsequently a new instance of the old
naming was added by change "qcacld-3.0: separate HE caps per band" so
replace that new instance.

Change-Id: Id450debfd30f54df050be7d02543581ce46eb5a5
CRs-Fixed: 2268167
2018-06-27 03:44:32 -07:00
Jeff Johnson
adf800d07e qcacld-3.0: Pass correct param to csr_scan_get_result()
In sme_scan_get_result() when calling csr_scan_get_result() a
tHalHandle is currently being passed as the context parameter.
csr_scan_get_result() is expecting a tpAniSirGlobal so pass the
correct parameter.

Change-Id: I6b704f4e1074b15cfbe86a539ac2dee60789e9e0
CRs-Fixed: 2268183
2018-06-27 03:44:27 -07:00
Jeff Johnson
9d11885da4 qcacld-3.0: Fix csr_is_mcc_channel() context param
Currently csr_is_mcc_channel() takes a tHalHandle context param.
However csr is internal to the UMAC, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: I4feecd5dbc056929ee406e8794e2b284b0b40f21
CRs-Fixed: 2268182
2018-06-27 03:44:24 -07:00
nshrivas
56ea3a46c5 Release 5.2.0.85M
Release 5.2.0.85M

Change-Id: I7df0090e060a8e82f7612aaaa555fe096841ddd0
CRs-Fixed: 774533
2018-06-27 02:11:34 -07:00
Nirav Shah
13ecbedb75 qcacld-3.0: Fix compilation issue for legacy flow control
Fix compilation issue for legacy flow control
(CONFIG_WLAN_TX_FLOW_CONTROL_LEGACY flag).

Change-Id: I2462d5b689ad6ea027411ff56c7550ab6036c0f4
CRs-Fixed: 2267924
2018-06-27 02:11:34 -07:00
Yeshwanth Sriram Guntuka
4fe30bdde0 qcacld-3.0: Send mode change event after addkey
On STA connection, mode change event is sent to
userspace after association is complete. This causes
delay in processing of M1 frame at supplicant due to
latency associated with nl80211_get_wiphy_index
function as part of processing mode change vendor event.

Fix is to send mode change event for STA after key
is added.

Change-Id: Id403bfdd26ed3a47449ba3f2967f4b4322ad5da6
CRs-Fixed: 2257117
2018-06-27 02:11:30 -07:00
Rachit Kankane
0868f8f18a qcacld-3.0: Allocate gplog_msg dynamically
Allocate memory for gplog_msg buffer dynamically.

Change-Id: I816624383cd8126a4a83bd31171d42a7705a7720
CRs-Fixed: 2266753
2018-06-27 02:11:27 -07:00
Nirav Shah
74be384d1c qcacld-3.0: Fix compilation error to enable genoa pcie
Fix compilation error while enabling QCA_WIFI_3_0_ADRASTEA
and CONFIG_CNSS2 flag for Genoa.

Change-Id: Ic44da39377f722c19edcd291d1b35fac1fee9462
CRs-Fixed: 2267927
2018-06-27 02:11:24 -07:00
nshrivas
c959b05942 Release 5.2.0.85L
Release 5.2.0.85L

Change-Id: I46713bbde3f5ecd500a5398ae987de29478db158
CRs-Fixed: 774533
2018-06-27 00:17:48 -07:00
Jeff Johnson
c6ab08f3cd qcacld-3.0: Fix csr_validate_any_default() context param
Currently csr_validate_any_default() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: I6bbfe2329e776e1438dca06ad7642cb870796ff6
CRs-Fixed: 2268181
2018-06-27 00:17:48 -07:00
Jeff Johnson
0589eec8e3 qcacld-3.0: Fix csr_is_wapi_match() context param
Currently csr_is_wapi_match() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: I0befea1f804204bc5589d33cf2d5fe6fd5126bf1
CRs-Fixed: 2268180
2018-06-27 00:17:44 -07:00
Jeff Johnson
d80e9159e4 qcacld-3.0: Fix csr_get_wapi_information() context param
Currently csr_get_wapi_information() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle, so update the API to expect tpAniSirGlobal.

Change-Id: I54004093c729add183fc3e02033d78f829f47241
CRs-Fixed: 2268179
2018-06-27 00:17:40 -07:00
Jeff Johnson
353650ea71 qcacld-3.0: Fix csr_get_rsn_information() context param
Currently csr_get_rsn_information() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle. So update the API to expect tpAniSirGlobal.

Change-Id: I29ad553360eddcf2b990b83bb0d1418d744a85ec
CRs-Fixed: 2268178
2018-06-27 00:17:35 -07:00
Jeff Johnson
44d0c09a2e qcacld-3.0: Fix csr_is_rsn_match() context param
Currently csr_is_rsn_match() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle. So update the API to expect tpAniSirGlobal.

Change-Id: I33a73505039716a38ea94c19d12a0a3ce390b0b3
CRs-Fixed: 2268177
2018-06-27 00:17:31 -07:00
Jeff Johnson
95f0705a72 qcacld-3.0: Fix bad csr_neighbor_middle_of_roaming() typecasts
In both csr_create_roam_scan_offload_request() and
csr_neighbor_roam_indicate_disconnect() there is a call to
csr_neighbor_middle_of_roaming() where the MAC context is typecast to
tHalHandle as part of the function call. However these typecasts are
incorrect since csr_neighbor_middle_of_roaming() expects to get a MAC
context. Due to the manner in which tHalHandle is defined this does
not current cause a build issue, but an upcoming change will enforce
type checking so update these calls to remove the inappropriate
typecasts.

Change-Id: I7eeb3eb6b4502c1934a8cffdd1d7372f93ee8ccb
CRs-Fixed: 2268176
2018-06-27 00:17:27 -07:00
nshrivas
5fd702c44e Release 5.2.0.85K
Release 5.2.0.85K

Change-Id: I6b75a8c48c10668c2817d91323f448cbca73b551
CRs-Fixed: 774533
2018-06-26 22:42:52 -07:00
Jeff Johnson
78334bd8b0 qcacld-3.0: Fix csr_get_dot11_mode() context param
Currently csr_get_dot11_mode() takes a tHalHandle context param.
However this is a static function, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalHandle. In addition the only caller is already passing
the real context pointer type so update the API to expect
tpAniSirGlobal.

Change-Id: I4f57252f0c94949b3219b5c07143d2545c659871
CRs-Fixed: 2267444
2018-06-26 22:42:51 -07:00
Jeff Johnson
8390fe23d8 qcacld-3.0: Fix lim_tx_complete() signature
lim_tx_complete() is currently defined to take a tHalHandle as the
first param. However the generic signature of a TX callback function
specifies that the first param should be a void *context. This
currently compiles because tHalHandle is defined to be a void *, but
this will soon be changed, so update lim_tx_complete() to explicitly
use a void *context.

Change-Id: I421e8acb25beed23d2f3803380a46db33b6f0964
CRs-Fixed: 2267443
2018-06-26 22:42:46 -07:00