커밋 그래프

10838 커밋

작성자 SHA1 메시지 날짜
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
Jeff Johnson
82664a6294 qcacld-3.0: Pass correct param type via QoS callback
The QoS callback is supposed to pass a mac_handle_t (aka tHalHandle)
to HDD, but in most cases what is actually passed is 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: I5913c3cf577606f8c207b1e40897b8cbe681de48
CRs-Fixed: 2267442
2018-06-26 22:42:42 -07:00
Jeff Johnson
64c2b55bce qcacld-3.0: Correctly call sme_get_current_roam_state()
Function sme_get_current_roam_state() takes 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: I3e17de9656fd83598cfd35b63843dd3f7b25d072
CRs-Fixed: 2267441
2018-06-26 22:42:37 -07:00
Jeff Johnson
8131a9d1d9 qcacld-3.0: Fix sme_process_ready_to_suspend() context param
Currently sme_process_ready_to_suspend() takes a tHalHandle context
param.  However this is a static internal 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 (which is what is already being passed by
sme_process_msg()).

Change-Id: Ic2f28613ce0f4df0a104aaa1ab23b311abe5e334
CRs-Fixed: 2267440
2018-06-26 22:42:33 -07:00
Jeff Johnson
bfc58a1000 qcacld-3.0: Fix sme_ibss_peer_info_response_handler() param
Currently sme_ibss_peer_info_response_handler() takes a tHalHandle
context param.  However this is a static internal 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 (which is what is already being passed by
sme_process_msg()).

Change-Id: I553b485f0e54f173d31e8931f3bda6bba8ede77d
CRs-Fixed: 2267439
2018-06-26 22:42:28 -07:00
Jeff Johnson
24e65b5f76 qcacld-3.0: Fix sme_tsm_ie_ind() context param
Currently sme_tsm_ie_ind() takes a tHalHandle context param.  However
this is a static internal 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
(which is what is already being passed by sme_process_msg()).

Change-Id: Ica6add4b81ad7ffd664ee6e46f2e8b43a731771f
Crs-Fixed: 2267438
2018-06-26 22:42:24 -07:00
Jeff Johnson
06c447fcb5 qcacld-3.0: Fix sme_ft_send_update_key_ind() context param
Currently sme_ft_send_update_key_ind() takes a tHalHandle context
param.  However this is a static internal 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 (which is what is already being passed by
sme_ft_update_key()).

Change-Id: I5309a6f9125684bc0d7766d5839f2296150b6834
CRs-Fixed: 2267437
2018-06-26 22:42:20 -07:00
nshrivas
c99eff17c7 Release 5.2.0.85J
Release 5.2.0.85J

Change-Id: I9b85f3d8ea34fa77ec171ec173f1e406e04530a1
CRs-Fixed: 774533
2018-06-26 20:11:38 -07:00
Krunal Soni
da0e1e7d34 qcacld-3.0: Add cmd_id as unique number to legacy sme command
Current driver keeps cmd_id as 0 for all non-scan commands which
makes serialization module's logic more complex in order to identify
between duplicate commands.

Add unique cmd_id and attach it to each legacy sme command to make
serialization module's logic easy to distinguish between duplicate
commands.

CRs-Fixed: 2267418
Change-Id: Id2ccb435137061c963120822326fe5b90f857eb7
2018-06-26 20:11:38 -07:00
Jeff Johnson
3aa54d42ef qcacld-3.0: Remove dead code in start pending ACS callback
In wlan_hdd_cfg80211_start_pending_acs() the result of calling
container_of() is NULL checked. The container of a work_struct is
always a valid pointer, so the NULL check is unnecessary. Remove this
resulting dead code.

Change-Id: Iac4d48037ee27bc5de4c5fbc7f91188d837c6d49
CRs-Fixed: 2267075
2018-06-26 20:11:34 -07:00
Bala Venkatesh
f2a75c0522 qcacld-3.0: Allow scanning on DFS channel if sta+sap scc is enabled
Allow scanning on DFS channel if sta+sap scc on dfs channel is
enabled.

CRs-Fixed: 2163490
Change-Id: I7bb94ed211062ff0f0f0ca93c765d51f26e28ce2
2018-06-26 20:11:31 -07:00