Commit Graph

10049 Commits

Author SHA1 Message Date
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
nshrivas
862915744c Release 5.2.0.85I
Release 5.2.0.85I

Change-Id: I701617fd3ec98841b1408ec1dbfe0863ac5bc0c1
CRs-Fixed: 774533
2018-06-26 18:53:22 -07:00
Vignesh Viswanathan
ba40f4b509 qcacld-3.0: Reset fw_peer_count for HO failure during del BSS
Currently fw_peer_count for HO failure is done in wma_roam_ho_fail_handler
which can lead to improper reset of the fw_peer_count if a HDD triggered
disassoc is in progress for the same peer leading to fw_peer_count going
to -1.

Reset the fw_peer_count for HO failure case in wma_delete_bss_ho_fail
API as this is called from the CSR/LIM for handling HO failure as
part of CSR disconnect.

Change-Id: I1526757b085086ca51eef9b9cca0ea757ed20b61
CRs-Fixed: 2266337
2018-06-26 18:53:21 -07:00
Nirav Shah
99923a8330 qcacld-3.0: Map all module logs to per-level log APIs
Map all module level log APIs to per-level log APIs
to compile out specific log level if required.

Change-Id: Icfcc28fb592ee99704d8fb23bc3cb45b6e4c9f53
CRs-Fixed: 2266718
2018-06-26 18:53:18 -07:00
nshrivas
fa4f48a18b Release 5.2.0.85H
Release 5.2.0.85H

Change-Id: I778a35079509d6a5856cb970af8626f3b64fd7b0
CRs-Fixed: 774533
2018-06-26 17:36:00 -07:00
Bala Venkatesh
867d411eea qcacld-3.0: Ignore CSA if the channel is DFS or disabled
If MCC to SCC switch is enabled, SAP is active and CSA
received for STA interface, then ignore the CSA if channel
is DFS/disabled.

CRs-Fixed: 2266838
Change-Id: I98b8d957766358ea86cc9f50339725cf4bf0038b
2018-06-26 17:36:00 -07:00
nshrivas
6d4cab4b01 Release 5.2.0.85G
Release 5.2.0.85G

Change-Id: I9991efbabd8e3fac7e4d7f646d1a7ba8ded1c2bd
CRs-Fixed: 774533
2018-06-26 01:35:55 -07:00
Ajit Pal Singh
a9d5382e9a qcacld-3.0: Check per vdev limits for selecting discard frames
When HL Flow Control is enabled, check for per vdev limits for making
a decision on whether frames should be discarded.

Change-Id: Ifde5f763d253eb644f97afeab9e4e1365c23e672
CRs-fixed: 2236321
2018-06-26 01:35:54 -07:00
Ajit Pal Singh
d6c08f2f0e qcacld-3.0: Add function to set vdev tx_desc limit
1) Add ol txrx function to set TX descriptor limits for a
vdev.
2) Set the TX descriptor limits for STA and AP mode.

Change-Id: Ie9b1e52c3aff05db99ba3748a94792cc8116cdca
CRs-fixed: 2236321
2018-06-26 01:35:51 -07:00
Ajit Pal Singh
aa4a47fedb qcacld-3.0: Restart netdev queues when tx_desc get free
1) Restart high priority netdev queue when tx descriptors get freed
   and the vdev->tx_desc_count < vdev->tx_desc_limit.
2) Restart normal priority netdev queues when tx descriptors get freed
   and the vdev->tx_desc_count < vdev->queue_start_th.

Change-Id: I99cc159289bc31558294e02cd9213a18472563f6
CRs-fixed: 2236321
2018-06-26 01:35:47 -07:00
Ajit Pal Singh
851a777ffc qcacld-3.0: Update OS queue status in TXRX module
Add function: ol_txrx_set_vdev_os_queue_status() to update
OS queue stop/start status in TXRX module.
Also call cdp_hl_fc_set_os_queue_status() from 'flow control
resume timer' to update OS queue status in TXRX module.

Change-Id: I03260985a48084bc523a3814c93c0e6b213e1970
CRs-fixed: 2236321
2018-06-26 01:35:42 -07:00
Ajit Pal Singh
5bcf68a52a qcacld-3.0: Stop netdev queues when limits reach
1) Stop non priority netdev queues when tx-q stop threshold reaches.
2) Stop priority queue when tx_desc_limit reached.

Change-Id: Idcacc19b6d47dd665bb54f210d6da292cbe5af8d
CRs-fixed: 2236321
2018-06-26 01:35:38 -07:00
Ajit Pal Singh
5d269618d5 qcacld-3.0: Populate legacy flow control ops for HL
1) Populate legacy flow control ops 'cdp_lflowctl_ops'
for HL netdev flow control.
2) Also call cdp_hl_fc_register() to register HL flow control
callback.
3) Increase number of netdev queues to 5

Change-Id: I6bdb015b3325e54386f2aad093c89f6f782c24ed
CRs-fixed: 2236321
2018-06-26 01:35:35 -07:00
nshrivas
6e18516d85 Release 5.2.0.85F
Release 5.2.0.85F

Change-Id: I12e05da166f2b66798c31609627f372b69a7d6cc
CRs-Fixed: 774533
2018-06-25 23:52:53 -07:00
Jeff Johnson
d549efa633 qcacld-3.0: Use mac_handle_t in wlan_hdd_ioctl
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_ioctl to use the new naming.

Change-Id: I5b6a062e02dc6db387c0a4e4cc363cdac7013f45
CRs-Fixed: 2267221
2018-06-25 23:52:52 -07:00
nshrivas
f8b05e2874 Release 5.2.0.85E
Release 5.2.0.85E

Change-Id: I90bdd714fad2cf6c4eaf5608ecdeba98e56cdf5d
CRs-Fixed: 774533
2018-06-25 22:31:19 -07:00
Jeff Johnson
89a0c74c9b qcacld-3.0: Use mac_handle_t in wlan_hdd_hostapd
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_hostapd to use the new naming.

Change-Id: I63b3bc8017de7f73a09599f9e8c9ef41009d6bc6
CRs-Fixed: 2267151
2018-06-25 22:31:19 -07:00
nshrivas
56a38b34f2 Release 5.2.0.85D
Release 5.2.0.85D

Change-Id: I31217d7700e5be4ffb3828967b8e97bad3930cfd
CRs-Fixed: 774533
2018-06-25 21:19:03 -07:00
Jeff Johnson
2954dedb2d qcacld-3.0: Use mac_handle_t in wlan_hdd_power
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_power to use the new naming.

Change-Id: I6729766eda0b6dc31d62028a8552c9fa9d7ce4f0
CRs-Fixed: 2267218
2018-06-25 21:19:03 -07:00
nshrivas
ba7feddb50 Release 5.2.0.85C
Release 5.2.0.85C

Change-Id: Id4ece5014f266403e3414a21b098d7955a66250b
CRs-Fixed: 774533
2018-06-25 19:54:02 -07:00
Jeff Johnson
cbbc78f93c qcacld-3.0: Use mac_handle_t in wlan_hdd_wmm
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_wmm to use the new naming.

Change-Id: I225c7b62b2b104941564856b3ed1ee20e3a8e1cd
CRs-Fixed: 2267123
2018-06-25 19:54:01 -07:00
Jeff Johnson
34fc63ab8d qcacld-3.0: Use mac_handle_t in wlan_hdd_cfg80211
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_cfg80211 to use the new naming.

Change-Id: Ia9a7014db052c46ee16d2cb834b46a0b7afafeee
CRs-Fixed: 2267223
2018-06-25 19:53:58 -07:00
Jeff Johnson
cec6e923a5 qcacld-3.0: Use mac_handle_t in wlan_hdd_wext
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_wext to use the new naming.

Change-Id: I3cabec634252453b33c8f480ba785cc739e872df
CRs-Fixed: 2267115
2018-06-25 19:53:55 -07:00
nshrivas
1b32bad189 Release 5.2.0.85B
Release 5.2.0.85B

Change-Id: Id6e7898edce0d6afea6801e37721c99a9b5b6af8
CRs-Fixed: 774533
2018-06-25 15:54:53 -07:00
Dustin Brown
662f48b2a2 qcacld-3.0: Initialize all completion vars for SAP vdevs
Because a SAP vdev can be repurposed as a station adapter, there is a
case where a station vdev that was created as a SAP vdev will try to
access uninitialized completion variables. As these members are directly
attached to the adapter struct, always initialize them, regardless of
the vdev type at time of creation.

Change-Id: Ifc14ec677ffa76551e55fe982a58df21d430d6c6
CRs-Fixed: 2266419
2018-06-25 15:54:53 -07:00
nshrivas
a19536fb16 Release 5.2.0.85A
Release 5.2.0.85A

Change-Id: Ifd268f2dd9e6771bba5b60966cc0d18f4bece11b
CRs-Fixed: 774533
2018-06-25 14:12:48 -07:00
Nirav Shah
23054cfb6d qcacld-3.0: Use only 2 copy engine for RFS in Genoa
Use only 2 copy engine channels for RFS in QCN7605
(Genoa) if IPA is enabled.

Change-Id: Iabc1c21960807c707b2c9c2ad66d2e426dcb38ab
CRs-Fixed: 2265172
2018-06-25 14:12:47 -07:00
Abhinav Kumar
db3c6f57e3 qcacld-3.0: Fix out-of-bounds access in lim_process_assoc_req_frame
Currently the function lim_process_assoc_req_frame uses frame_len
without validation to parse the IE buffer which could lead to
out-of-bounds memory access if the frame_len is less than or
equal to LIM_ASSOC_REQ_IE_OFFSET(4).

Add check to validate the frame_len with LIM_ASSOC_REQ_IE_OFFSET
before sending (frame_len - LIM_ASSOC_REQ_IE_OFFSET) to
cfg_get_vendor_ie_ptr_from_oui to parse only the IE buffer.

Change-Id: Iaa9e8db4a2605169c9ad3904878a2e626eb6de8b
CRs-Fixed: 2259707
2018-06-25 14:12:45 -07:00
nshrivas
41721b79f8 Release 5.2.0.85
Release 5.2.0.85

Change-Id: I4d3de98263738989c2f206923d8f2dfac147c807
CRs-Fixed: 774533
2018-06-25 12:41:08 -07:00
Jeff Johnson
13386da460 qcacld-3.0: Fix csr_is_pmf_capabilities_in_rsn_match() param
Currently csr_is_pmf_capabilities_in_rsn_match() 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: Ie13e86dac694bc1c17305f12aeb817387cc7c4bd
CRs-Fixed: 2266509
2018-06-25 12:41:07 -07:00
Jeff Johnson
3f9d9fbcd0 qcacld-3.0: Fix csr_is_bss_description_wme() context param
Currently csr_is_bss_description_wme() 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: I2812f57e57a06a71a81bee20773587fa99189e40
CRs-Fixed: 2266506
2018-06-25 12:41:04 -07:00
Jeff Johnson
2ef47449f6 qcacld-3.0: Fix sme_unprotected_mgmt_frm_ind() context param
Currently sme_unprotected_mgmt_frm_ind() 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: I552cade9adf0bdc7a9cf38c76cd8786548dc7011
CRs-Fixed: 2266505
2018-06-25 12:41:01 -07:00
Jeff Johnson
711fe948c4 qcacld-3.0: Fix param to rrm_change_default_config_param()
Currently in sme_update_config() the call to
rrm_change_default_config_param() is passing a mac_handle_t instead of
a tpAniSirGlobal. Change the call to pass the correct parameter.

Change-Id: I1490e3f491c1c8539acc0054343263366fb8bfca
CRs-Fixed: 2266503
2018-06-25 12:40:57 -07:00
Jeff Johnson
f86cac17cc qcacld-3.0: Pass correct param to sme_ps_start_uapsd()
Currently in multiple places calls to sme_ps_start_uapsd() are passing
a tpAniSirGlobal instead of a mac_handle_t. Change these calls to pass
the correct parameter.

Change-Id: I9cd30be8eb237423cb621b390be2bbc75ecebb92
CRs-Fixed: 2266502
2018-06-25 12:40:54 -07:00
nshrivas
d7e010020e Release 5.2.0.84Z
Release 5.2.0.84Z

Change-Id: I351b585ae121f7981b6cd57d0cf29964f733e29c
CRs-Fixed: 774533
2018-06-25 11:28:41 -07:00
Jeff Johnson
0a38afe444 qcacld-3.0: Pass correct param to sme_get_config_param()
Currently in sme_get_channel_bonding_mode5_g() and
sme_get_channel_bonding_mode24_g() the calls to sme_get_config_param()
are passing a tpAniSirGlobal instead of a tHalHandle. Change these
calls to pass the correct parameter.

Change-Id: I1fc1b357f96d29babc2bb8439b924fbd1fb74b62
CRs-Fixed: 2266455
2018-06-25 11:28:40 -07:00
nshrivas
74437a0b26 Release 5.2.0.84Y
Release 5.2.0.84Y

Change-Id: I4ac4b592eedb0c46e1358723c99b683b1d5703f8
CRs-Fixed: 774533
2018-06-25 10:02:21 -07:00
Bala Venkatesh
b39ed1597e qcacld-3.0: Update nw_type of pe session when switching channel
In peer assoc command, the phy mode of peer is updated based on
the nw_type of pe session. So this value should accordingly as per
the new channel.

Change-Id: Ib596cb343f239456aba688b2b5ea7b19b3034a66
CRs-Fixed: 2161043
2018-06-25 10:02:21 -07:00
Lin Bai
7d83a64f4c qcacld-3.0: Configure num_vdevs for FTM mode
Recent num_vdevs configuration change involved the regression,
that num_vdevs in FTM mode isn't configured, and default 0 interface
allowed. This is blocking FTM initialized.

Though no vdev required for FTM, here use INI configuration
to bypass check as well.

CRs-Fixed: 2266815
Change-Id: I019814fb2c37f1f9b5922545769761bed7a0da52
2018-06-25 10:02:16 -07:00
nshrivas
fd0d832ac8 Release 5.2.0.84X
Release 5.2.0.84X

Change-Id: I6589aa00deaa02a431a770c807267a754b7fcdbf
CRs-Fixed: 774533
2018-06-25 06:31:47 -07:00
Ashish Kumar Dhanotiya
e533f6cdf1 qcacld-3.0: Return success on same MAC address change
Currently if the set mac adderess command comes, driver is
returning failure if any of the interface is using the MAC
address given in the command.
Return success if the same MAC address is passed in the command
for the same interface which is using this MAC currently.

Change-Id: Iaab6109aa015b6be525eba2bacbe05c3c796e033
CRs-Fixed: 2266755
2018-06-25 06:31:47 -07:00
nshrivas
f80f39e026 Release 5.2.0.84W
Release 5.2.0.84W

Change-Id: I85db21dee3d4de4c0a2c0266533ddb0ee149e2b6
CRs-Fixed: 774533
2018-06-25 04:55:53 -07:00
Sriram Madhvapathi
b1a791c99a qcacld-3.0: Abstract SDIO block size
Do not tie up names with mailbox.
This results from SDIO HIF refactoring.
See qcacmn: I12bdf8b07350411093ba35071411525a8333cf93

Change-Id: I99184fbfc95a601f09dba5891098c35d5aa794c5
CRs-Fixed: 2252448
2018-06-25 04:55:52 -07:00
nshrivas
fab4696184 Release 5.2.0.84V
Release 5.2.0.84V

Change-Id: Ia33ccabfdc39b4d3d732951f3d8ddc47813d2135
CRs-Fixed: 774533
2018-06-24 16:10:03 -07:00
Hanumanth Reddy Pothula
04bad8fa9d qcacld-3.0: Resolve possible OOB issue while processing start_bss
Presently, while processing start_bss, after retrieving WPS IE from
the beacon frame, 15th byte of WPS IE is accessed to get WPS state,
without confirming IE length holds that much minimum length to access.

Before accessing 15th byte(WPS state) of WPS IE, make sure IE length
holds minimum length to access it.

Change-Id: Ic00c700a1fbf88183b8b2d834c9700b538700ce7
CRs-Fixed: 2239164
2018-06-24 16:10:03 -07:00
nshrivas
5f80f479e4 Release 5.2.0.84U
Release 5.2.0.84U

Change-Id: Ia08edc8816c64431851fd3f97c901cdecdce6c60
CRs-Fixed: 774533
2018-06-24 11:58:48 -07:00
Jeff Johnson
ac99e473cd qcacld-3.0: cds: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the cds folder.

Change-Id: I689e80fefa0068980a2bf78d2eff13d0892f8d95
CRs-Fixed: 2266521
2018-06-24 11:58:47 -07:00
nshrivas
3379facfc3 Release 5.2.0.84T
Release 5.2.0.84T

Change-Id: Ide6307a5fdb9c58fa025794ad2a4fa54558e4344
CRs-Fixed: 774533
2018-06-24 10:16:59 -07:00
Jeff Johnson
6dca9b3421 qcacld-3.0: Use mac_handle_t in wlan_hdd_clear_link_layer_stats
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_stats" transitioned
wlan_hdd_stats to use the new naming. But while that change was in the
pipeline a new instance of tHalHandle was added. So now transition the
instance recently added to wlan_hdd_clear_link_layer_stats().

Change-Id: I2d17c729a92eb5c545b829fc6699e34233116f94
CRs-Fixed: 2266545
2018-06-24 10:16:58 -07:00
nshrivas
bc2e6ec14e Release 5.2.0.84S
Release 5.2.0.84S

Change-Id: Ic9e02629b3d34d2846094ed7519fcf0c8a1e7ade
CRs-Fixed: 774533
2018-06-23 22:10:18 -07:00
Wu Gao
ae38aeda71 qcacld-3.0: Do not clear session id
No valid channel found when DUT as P2P GO and radar signal detected,
stop ap and then up layer start ap again, session id of adapter
changed to invalid since session id of sap context is invalid and
passed to adapter in hdd_hostapd_sap_event_cb with event
eSAP_START_BSS_EVENT. So, do not clear session id of sap context for
stopping ap due to invalid channel case.

Change-Id: I3d60ae9b4ec8223dff26ffd9078b31e02bf29ba2
CRs-Fixed: 2257932
2018-06-23 22:10:18 -07:00
nshrivas
c3c01d8dd6 Release 5.2.0.84R
Release 5.2.0.84R

Change-Id: I7577f965875b9ee1471fcf875a5dd72a31e8b5ea
CRs-Fixed: 774533
2018-06-23 14:19:42 -07:00
Jeff Johnson
daa7cd9475 qcacld-3.0: Use mac_handle_t in wlan_hdd_cfg
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_cfg to use the new naming.

Change-Id: Ib3a9d26cb8966b52b71e97d7b9fb8f2cca9ed916
CRs-Fixed: 2266499
2018-06-23 14:19:41 -07:00
Jeff Johnson
792c83bd6c qcacld-3.0: Use mac_handle_t in wlan_hdd_ext_scan
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_ext_scan to use the new naming.

Change-Id: I69f8a76ae798ed00953727b7687f53506acd22d3
CRs-Fixed: 2266498
2018-06-23 14:19:37 -07:00
nshrivas
8da43a2f3c Release 5.2.0.84Q
Release 5.2.0.84Q

Change-Id: Icc80583265a7f1c8fe708fca3dd4cb04fb40a643
CRs-Fixed: 774533
2018-06-23 12:33:45 -07:00
Jeff Johnson
d3c51e9d2d qcacld-3.0: sys: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac sys folder.

Change-Id: Ia1d4a570b7c79ea2bd0ad5f82d287c48f73051b9
CRs-Fixed: 2266497
2018-06-23 07:04:39 -07:00
nshrivas
c00e9f9eb6 Release 5.2.0.84P
Release 5.2.0.84P

Change-Id: I35c714906bf33ff1e6b0a92a98176a1884b59d7d
CRs-Fixed: 774533
2018-06-23 03:47:14 -07:00
Jeff Johnson
4d243e60c7 qcacld-3.0: dph: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac dph folder.

Change-Id: I150e024f9b764547267dc8b4673a95e3366c6b70
CRs-Fixed: 2266147
2018-06-22 22:25:15 -07:00
nshrivas
6294193055 Release 5.2.0.84O
Release 5.2.0.84O

Change-Id: I9c107f1d4816daa370ef4766105e21bc6f4d912a
CRs-Fixed: 774533
2018-06-22 22:19:14 -07:00
Jeff Johnson
a9089303f4 qcacld-3.0: pe: nan: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac pe/nan folder.

Change-Id: I762d963f5c19f797b9fe0bc933368d4d700de7b3
CRs-Fixed: 2266394
2018-06-22 22:19:13 -07:00
Jeff Johnson
f7187f24e1 qcacld-3.0: Use mac_handle_t in wlan_hdd_assoc
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_assoc to use the new naming.

Change-Id: I33e58d6c51124036d00e37fa3018379b7f99105a
CRs-Fixed: 2266433
2018-06-22 22:19:09 -07:00
nshrivas
0203c0edf6 Release 5.2.0.84N
Release 5.2.0.84N

Change-Id: I1d19f01ce155cecc5ea8f5831fdfff8a2c2189eb
CRs-Fixed: 774533
2018-06-22 21:07:14 -07:00
Hanumanth Reddy Pothula
834f943961 qcacld-3.0: Report valid MCS index to upper layer
While processing get_station cfg operation, HDD is using Nss
value, which gets updated during association, to calculate data
rate. So, there is a possibility of driver to report invalid
MCS index to upper layer if association happens with Nss 2 and
when data transmission is happening at Nss 1 rate.

On receiving GET STATS response, calculate Nss value based upon
the current data rate received from firmware, and pass it to HDD,
so that HDD can use the same Nss value to report valid MCS index
to the upper layer.

Change-Id: I62f029d53149a4747f619027ce69ce65fb280b8d
CRs-Fixed: 2250993
2018-06-22 21:07:13 -07:00
Sandeep Puligilla
d7b48974fe qcacld-3.0: clean unused API csr_is_duplicate_bss_description
Clean unused api csr_is_duplicate_bss_description

Change-Id: I4a245f9baae79dcb1a942cdada3f321a08b1b413
CRs-Fixed: 2265544
2018-06-22 21:07:10 -07:00
nshrivas
85d1f1bb32 Release 5.2.0.84M
Release 5.2.0.84M

Change-Id: I9a1fd195e12d19d138344c3c77127d1c8e17776e
CRs-Fixed: 774533
2018-06-22 19:52:22 -07:00
Jeff Johnson
5f9ce2d24d qcacld-3.0: Fix sme message callback context param
The SME message callback is currently being used in a manner that is
inconsistent with its signature. The signature specifies that a
tHalHandle should be passed but PE actually passes a tpAniSirGlobal.
Since this is a MAC internal interface update the logic to
consistently use a tpAniSirGlobal.

Change-Id: I8bf94a3dd603b76bdbe7c0db3555736692f64cb7
CRs-Fixed: 2266188
2018-06-22 19:52:21 -07:00
Jeff Johnson
acccf296e4 qcacld-3.0: Remove obsolete utils_api items
utils_api.h exports the following macros, variables, and functions
which are no longer used, so remove them:
- LOG_FIRST_MODULE_ID
- LOG_INDEX_FOR_MODULE
- GET_MIN_VALUE
- gPktAllocCnt
- gPktFreeCnt
- get_vos_debug_level
- sirParseNextIE
- hal_round_s32
- convertto_big_endian
- create_scan_cts_frame
- create_scan_data_null_frame
- create_init_scan_raw_frame
- create_finish_scan_raw_frame

Change-Id: If68849746e1f2507fce8f0cf1d85c6f752fde536
CRs-Fixed: 2266339
2018-06-22 19:52:18 -07:00
Pragaspathi Thilagaraj
655db19762 qcacld-3.0: Fix mem leak in lim_handle_csa_offload_msg
The function lim_handle_csa_offload_msg, posts the
eWNI_SME_CSA_OFFLOAD_EVENT msg to sme. The csa_offload_ind
allocated is not freed during failure cases and this will result
in memory leak during the failure cases.

Free the memory allocated for csa_offload_ind for the failure
cases.

CRs-Fixed: 2263376
Change-Id: I6e25500c0e3a0cc2fa71601d935ec9bbe866dc2b
2018-06-22 19:52:15 -07:00
nshrivas
1b740167df Release 5.2.0.84L
Release 5.2.0.84L

Change-Id: Idd23b9f447d46c2fc6894530a9069b5793756a19
CRs-Fixed: 774533
2018-06-22 17:29:02 -07:00
Abhishek Singh
38da980436 qcacld-3.0: Fix peer use after free in wma_is_ccmp_pn_replay_attack
In wma_is_ccmp_pn_replay_attack peer is used without taking the ref
count and thus this can lead to peer used after free.

Fix this by taking ref of peer before using the peer in
wma_is_ccmp_pn_replay_attack and release ref once access is done.

Change-Id: Iaa5936a1c7f6f8667a68fcb646eaec4cb3aa5469
CRs-Fixed: 2264434
2018-06-22 17:29:02 -07:00
nshrivas
340315abb1 Release 5.2.0.84K
Release 5.2.0.84K

Change-Id: I7cb46bd25bc48abfec3fb3bceadfadcd5e160b87
CRs-Fixed: 774533
2018-06-22 15:36:40 -07:00
Jeff Johnson
a96ee9371e qcacld-3.0: Use mac_handle_t in wlan_hdd_p2p
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_p2p to use the new naming.

Change-Id: I93514340fcfcf136e6e635aa142209f7cf35a68f
CRs-Fixed: 2266176
2018-06-22 15:36:40 -07:00
nshrivas
4a371d0e8e Release 5.2.0.84J
Release 5.2.0.84J

Change-Id: I9a53afadc8038ac7076b9f8df888dd42eba19c1d
CRs-Fixed: 774533
2018-06-22 14:08:02 -07:00
Jeff Johnson
96d162a85a qcacld-3.0: cfg: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the mac cfg folder.

Change-Id: Ia8a644bc80356cf1dcf7f688d7758902d38af57a
CRs-Fixed: 2266149
2018-06-22 14:08:01 -07:00
Jeff Johnson
83e30fa110 qcacld-3.0: sap: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the sap folder.

Change-Id: I17482713977012d13e0fdb99b67e3f5f4a33efe9
CRs-Fixed: 2266146
2018-06-22 14:07:58 -07:00
nshrivas
72eb98a163 Release 5.2.0.84I
Release 5.2.0.84I

Change-Id: I70724f20a37617745ef58bfd6f3d70db4fca7d28
CRs-Fixed: 774533
2018-06-22 13:02:29 -07:00
nshrivas
0e368f5157 Release 5.2.0.84H
Release 5.2.0.84H

Change-Id: I19105ce61eb3552d0d736d33e30285af285205c4
CRs-Fixed: 774533
2018-06-22 11:36:18 -07:00
Jeff Johnson
c09caa4db6 qcacld-3.0: sme: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the sme folder.

Change-Id: Ib47c297fb19c350f6ccb7d2c433ebb0eac36b2c4
CRs-Fixed: 2263024
2018-06-22 11:36:18 -07:00
nshrivas
3c7c278301 Release 5.2.0.84G
Release 5.2.0.84G

Change-Id: Ibd30d470e3542f301cdb90c8be3bbf0c430e9ad0
CRs-Fixed: 774533
2018-06-22 10:32:35 -07:00
Naveen Rawat
e9d642342d qcacld-3.0: Fix NDI self-peer creation sequence
Make sure to follow AP for NDI self peer creation so that self peer
creation and deletion can be symmetric.

Change-Id: Ie7f9c7b5500540c824a75758337967f8d4f6e692
CRs-Fixed: 2261713
2018-06-22 10:32:34 -07:00
Naveen Rawat
2986a1460d qcacld-3.0: Fix NDP new peer indication memory leak
Fix memory leak in function lim_send_sme_ndp_add_sta_rsp
where memoery for new peer indication for NDP is allocated
but not freed after use.

Change-Id: If5e2df154f5aab8cec21a54dd62a1c1af43e075a
CRs-Fixed: 2261712
2018-06-22 10:32:31 -07:00
Naveen Rawat
23a3b916b4 qcacld-3.0: Fix NDI create sequence
Create NDI vdev after adapter is added to back of hdd adapter list,
so that vdev create completion callback can identify right adapter
and set corresponding completion variable.

Change-Id: If72f779fabc15a9c29f7d94bffa041f7d42db1f4
CRs-Fixed: 2252030
2018-06-22 10:32:27 -07:00
nshrivas
05aa0296cf Release 5.2.0.84F
Release 5.2.0.84F

Change-Id: I4ac99b4c81e875ae34fecd1a74694a7f0d876043
CRs-Fixed: 774533
2018-06-22 08:18:15 -07:00