Commit Graph

12542 Commits

Author SHA1 Message Date
Liangwei Dong
3fb0016526 qcacld-3.0: Check and skip Radar event for SAP
Use the new API wlan_reg_chan_has_dfs_attribute
to check dfs channel or not. The old API may return
CHANNEL_STATE_DISABLE if the dfs chan is added to
NOL.
If SAP is not on dfs channel, skip the Radar event
process.

Change-Id: Ie5c87e6fa416658df64da54c276fb87f23ed7efb
CRs-Fixed: 2324649
2018-10-02 17:19:02 -07:00
nshrivas
c0c915d060 Release 5.2.0.99K
Release 5.2.0.99K

Change-Id: I875cd3a88cf1ad972c4e182a53d85b5a57608a64
CRs-Fixed: 774533
2018-10-02 13:48:25 -07:00
Kiran Kumar Lokere
3aad079e16 qcacld-3.0: Fix the compilation issue
Fix the compilation issue with log message.

Change-Id: I5007d44c64a76f424bb8deccba7379813c00697c
CRs-Fixed: 2321454
2018-10-02 13:48:25 -07:00
nshrivas
bd455a060a Release 5.2.0.99J
Release 5.2.0.99J

Change-Id: I09d66b0429525a7c9b87bbca601673eec6625e0b
CRs-Fixed: 774533
2018-10-02 12:07:59 -07:00
nshrivas
deff2eb723 Release 5.2.0.99I
Release 5.2.0.99I

Change-Id: I38bfc8c18a17a1e55a90b166f57b1cacf6fbd69a
CRs-Fixed: 774533
2018-10-02 02:31:27 -07:00
Harprit Chhabada
1eeeb8dd85 qcacld-3.0: Add ACS CFG/INI items to MLME component
Add following CFG items to mlme component

1.CFG_ACS_WITH_MORE_PARAM_NAME
2.CFG_AUTO_CHANNEL_SELECT_WEIGHT
3.CFG_USER_AUTO_CHANNEL_SELECTION
4.CFG_USER_ACS_DFS_LTE
5.CFG_EXTERNAL_ACS_POLICY

Change-Id: If31451c2141ec6c30d5590f92a0b36253eaa5c46
CRS-Fixed: 2315978
2018-10-02 02:31:26 -07:00
nshrivas
5c84b68774 Release 5.2.0.99H
Release 5.2.0.99H

Change-Id: I729ec2a5e000f2aae5c9ed6b698fdde18767635e
CRs-Fixed: 774533
2018-10-02 00:46:48 -07:00
Sourav Mohapatra
e4c531f3d1 qcacld-3.0: Update default value of gReportMaxLinkSpeed to 0
Presently the ini gReportMaxLinkSpeed has the default value as 2 that
gives the scaled rate to the userspace instead of actual rate. As the
userspace needs the actual rates, this causes a mismatch.

Configure the value of gReportMaxLinkSpeed to 0 so as to send the actual
rates to the userspace.

Change-Id: Ieaa828d1aabaf099c74a9d5093f5d6fab5da01b5
CRs-Fixed: 2317661
2018-10-02 00:46:48 -07:00
Pragaspathi Thilagaraj
a19068f611 qcacld-3.0: Fix default ini value of gAutoBmpsTimerValue
When BMPS is already enabled and we have entered the WOW mode,
we start detecting the AP behavior , where the AP
continuously sets the TIM bit and because of which we don’t go
to PM1 mode after waking UP.

With the current ini value, we don't go to sleep for 30 secs,
which should be updated to 90secs.

Change-Id: I3b551011e90761f1dc13197a4795972f495853a6
CRs-Fixed: 2306266
2018-10-02 00:46:44 -07:00
nshrivas
66a890e1ea Release 5.2.0.99G
Release 5.2.0.99G

Change-Id: Ia1fe49993c58c73830dc421aa77a0ea15e75ab6e
CRs-Fixed: 774533
2018-10-01 18:38:14 -07:00
Wu Gao
66454f118f qcacld-3.0: Apply PMO configures
Since refined PMO configures based on converged cfg component, apply
PMO configurations, remove related legacy codes.

Change-Id: I2cdf18c1000d8cc923c80c00bf530b2b0c60563e
CRs-Fixed: 2322185
2018-10-01 18:38:10 -07:00
nshrivas
d4cb57d17b Release 5.2.0.99F
Release 5.2.0.99F

Change-Id: Ifae70a214712ecc843dcb44d1971bd1c85520851
CRs-Fixed: 774533
2018-10-01 14:59:41 -07:00
Rajeev Kumar
9f46158146 qcacld-3.0: Resume wlan threads during shutdown before adapter reset
Resume wlan threads during wlan shutdown process before adapter reset
because adapter reset triggers vdev destroy and vdev destroy sends
del sta self message to lower layers and in absence of wlan threads
this message will not be processed leading to timeout and vdev peer
object leak. Hence add fix to make sure wlan threads are resumed
before resetting adapters during wlan shutdown process.

Change-Id: Idc31b7e41e5d9734b5f6b96fba24948dbfb45c3d
CRs-Fixed: 2321503
2018-10-01 14:59:40 -07:00
nshrivas
01a3ac0e52 Release 5.2.0.99E
Release 5.2.0.99E

Change-Id: I48e91b454b8ae137388685877d8fc7fefc1dffce
CRs-Fixed: 774533
2018-10-01 13:24:36 -07:00
Abhishek Singh
ee5c9a3851 qcacld-3.0: Fix handling of QOS action frame
QOS action frame is not handled and thus HDD's dscp mapping
are not updated.

Update the HDD's dscp mapping properly once hdd receive
QOS action frame.

Change-Id: I04ba9882767918cfb0c551791783f2b7eac998d5
CRs-Fixed: 2325729
2018-10-01 13:24:35 -07:00
Alok Kumar
9b13327cfb qcacld-3.0: Remove console logging for ol_txrx_peer_get_ref
In ol_txrx_peer_get_ref(), console logging is done after holding
spin lock which leads to spinlock lockup.

Avoid excess logging into console while holding spin lock.

Change-Id: Iae4fa6006358e26796ae2c262aca01bec7eacd21
CRs-Fixed: 2325704
2018-10-01 13:24:32 -07:00
nshrivas
44b0d24014 Release 5.2.0.99D
Release 5.2.0.99D

Change-Id: I6c9faceba0aa589998bae51895f08982238f26a3
CRs-Fixed: 774533
2018-10-01 11:36:27 -07:00
Pragaspathi Thilagaraj
da3b5e21eb qcacld-3.0: Remove legacy WEP CFG definitions
Remove the legacy definitions that are related to the WEP
cfg.
Move them to mlme component

Change-Id: Ibcec8adf15123d12ad7c2eb6ed770b44a093673a
CRs-Fixed: 2324046
2018-10-01 11:36:26 -07:00
nshrivas
7e3322f50d Release 5.2.0.99C
Release 5.2.0.99C

Change-Id: I46a896920304c42580185c4063b93b0f19aeddc2
CRs-Fixed: 774533
2018-10-01 09:48:46 -07:00
Vignesh Viswanathan
79f7e3f682 qcacld-3.0: Move sme_is_conn_state_connected outside ifdef
sme_is_conn_state_connected API is incorrectly places inside
FEATURE_BSS_TRANSITION ifdef causing compilation failure if the
flag FEATURE_BSS_TRANSITION is disabled.

Move sme_is_conn_state_connected outside of FEATURE_BSS_TRANSITION.

Change-Id: I3563d1e24f48990b0e16919a5ddaa9ed71bd53ac
CRs-Fixed: 2325332
2018-10-01 09:48:45 -07:00
gaurank kathpalia
d001f985d2 qcacld-3.0: Add check for num_peers in wma_ibss_peer_info_event_handler
in wma_ibss_peer_info_event_handler, the driver has a upper
bound check on num_peers and not a lower bound check.
the num_peers should be a positive value.
Since there is no check to see if num_peers is set to 0,
this check can underflow and result in multiple OOB writes
once the loop has incremented more than 32 times.

Fix is to check whether num_peers is a positive value,
and return if not found true.

Change-Id: I599151cc6720ed931142ad6a519add6957fea467
CRs-Fixed: 2324139
2018-10-01 09:48:40 -07:00
Sandeep Puligilla
30bb8407cd qcacld-3.0: Add VDEV state machine for STA disconnection
Add support for VDEV state machine support
for STA disconnection

Change-Id: Iee7274fbc8ae985d034a29f920faa38aab68ccc7
CRs-Fixed: 2322539
2018-10-01 09:48:36 -07:00
nshrivas
bfdca56d3d Release 5.2.0.99B
Release 5.2.0.99B

Change-Id: Icaedb24971873fe3d3847492ee56a1db9ac7ef75
CRs-Fixed: 774533
2018-10-01 08:04:45 -07:00
Pragaspathi Thilagaraj
3551caa95b qcacld-3.0: Fix error handling in eWNI_SME_ADD_STA_SELF_RSP
When peer creation fails in wma_create_peer, vdev delete is sent
to the fw and then eWNI_SME_ADD_STA_SELF_RSP is sent to sme.
Here three error cases needs to be handled:
1. The vdev deletion has happened, but the cdp_detach_peer is
not done. So the data path peer remains. Also the vdev_active
flag that was set after vdev creation was not unset.
2. The eWNI_SME_ADD_STA_SELF_RSP msg handler
csr_process_add_sta_session_rsp invokes csr_roam_session_opened
which signals HDD that vdev is created successfully and hdd
calls hdd_vdev_ready and vdev related parameter set commands are
sent to FW for the deleted vdev.
3. Vdev delete is not sent for objmgr peer creation failure in
case of VDEV_TYPE_STA and release vdev object ref count.

Add cdp_vdev_detach() calls during error case and set the
vdev_active flag to false. Handle releasing vdev object ref
count in all needed error case flows.
Propagate the error in wma_vdev_attach() through
csr_roam_session_opened() to HDD and abort the vdev create.

Change-Id: Iec97122d011098fae7ae2a59864fbe8ca8a0980e
CRs-Fixed: 2322212
2018-10-01 09:24:20 +05:30
nshrivas
b54949b2a0 Release 5.2.0.99A
Release 5.2.0.99A

Change-Id: I2f9f3fb66d8cd5cbc290b0ebcd562ba16d0e192e
CRs-Fixed: 774533
2018-09-30 00:45:02 -07:00
Jiachao Wu
3304d6b55a qcacld-3.0: Refine mlme product details configures
Refine mlme product details configures based on converged cfg component.
Remove related legacy codes.

Change-Id: I87ca037ac5c8e6c7cd166a2de17319a9a367fc7c
CRs-Fixed: 2304075
2018-09-30 08:53:46 +08:00
nshrivas
d438427e73 Release 5.2.0.99
Release 5.2.0.99

Change-Id: I069ca2b621723dee80424c5f140c1ce4b21b2569
CRs-Fixed: 774533
2018-09-29 01:43:01 -07:00
Jianmin Zhu
82a69bf343 qcacld-3.0: Release cmd before qdf_session_close_event completed
Need release cmd e_sme_command_del_sta_session before
hdd_sme_close_session_callback.
hdd_sme_close_session_callback will call
qdf_event_set(&adapter->qdf_session_close_event),
hdd_vdev_destroy will destroy vdev after qdf_session_close_event
completed, while csr_release_command will still access vdev.

Change-Id: Idc581bdd4f1d63b4903ee802326474ba83d528e5
CRs-Fixed: 2324616
2018-09-29 01:43:00 -07:00
nshrivas
388d7efe9d Release 5.2.0.98Z
Release 5.2.0.98Z

Change-Id: I3155e9a01b1ad5e29fc9f5732f6f4345d2763377
CRs-Fixed: 774533
2018-09-28 23:38:44 -07:00
Rajeev Kumar
eb6ec172d7 qcacld-3.0: Reduce excessive console logging from chan info cb
wlan_hdd_chan_info_cb is using info log level to log debug
message and its leading to excessive console logging since
info logs are logged on console. Reduce the log level to
avoid excessive console logging.

Change-Id: I79f67aec5c223126a0de74965336048dc7d4a547
CRs-Fixed: 2323586
2018-09-28 23:38:44 -07:00
nshrivas
86134e02ec Release 5.2.0.98Y
Release 5.2.0.98Y

Change-Id: Ic5d4f8791b639dd91644837e982d6b3a1f224c62
CRs-Fixed: 774533
2018-09-28 21:33:51 -07:00
Will Huang
7b39e19a60 qcacld-3.0: Remove reachable QDF_BUG(0) in wma_vdev_start_resp_handler
While handling the WMI_VDEV_START_RESP_EVENTID WMI FW event a reachable
QDF_BUG() can occur, because the message coming from out is not
reliable.

Change-Id: I9a142152a5d65e8fa25590eac1bc63279a1de4ba
CRs-Fixed: 2321490
2018-09-28 21:33:51 -07:00
nshrivas
a7ec45d54e Release 5.2.0.98X
Release 5.2.0.98X

Change-Id: Ic27afc64d43677498068f9db8171656d9e6c37f3
CRs-Fixed: 774533
2018-09-28 19:01:43 -07:00
Pragaspathi Thilagaraj
f445a4badf qcacld-3.0: Remove legacy call to cds_is_target_ready
When wma_create_peer is called, driver checks for
cds_is_target_ready and the macro CDS_DRIVER_STATE_FW_READY is
unset during the wlan_hdd_pld_uevent. This results in race
condition where the wma_peer_create fails due to
cds_is_target_ready() failure and wma_vdev_delete is sent from
wma_vdev_attach. In wmi_stopinprogress is set when firmware is
down. But this is set only after a small delay and the vdev
commands reach the fw, which results in a race condition.

Remove the cds_is_target_ready() call from wma_create_peer.
Place the call to wma_wmi_stop() to set the wmi_stopinprogress
flag immediately after the wlan_hdd_pld_uevent is received.

Change-Id: Iea53931771afd93ffaeabf704bbaffcf2460284f
CRs-Fixed: 2320538
2018-09-28 19:01:42 -07:00
Harprit Chhabada
bec6de418b qcacld-3.0: Add CFG/INI items to mlme component
Add following mlme CFG items to mlme component

1.CFG_RTS_THRESHOLD
2.CFG_FRAGMENTATION_THRESHOLD

Change-Id: I07b5dcffe8d3d03fa2cbecc7be563c407dc4d61e
CRs-Fixed: 2313600
2018-09-28 19:01:39 -07:00
Ashish Kumar Dhanotiya
cd311c87fc qcacld-3.0: Update correct PHY mode while processing ch_info_req
Currently PHY mode is not getting updated and it is being set as
0, which is resulting in an invalid channel setting to FW
for LOWI.

To address this issue update the PHY mode correctly.

Change-Id: I1f650268e2ba1814a435994d558b4b68030eb8c1
CRs-Fixed: 2318551
2018-09-28 19:01:35 -07:00
Varun Reddy Yeturu
1f10370d1b qcacld-3.0: Fix unsafe pointer dereference in TWT enable event handler
Fix MAC context NULL pointer dereference in
wma_twt_en_complete_event_handler().

Change-Id: I4b8454032bf44827b174d131145b849935a8a5c4
CRs-Fixed: 2323570
2018-09-28 19:01:31 -07:00
nshrivas
118acc4c33 Release 5.2.0.98W
Release 5.2.0.98W

Change-Id: If07e1980d1973805b5c300c6bb4e8e5095417ba9
CRs-Fixed: 774533
2018-09-28 14:29:21 -07:00
Amar Singhal
27be4442e1 qcacld-3.0: Do not use pointer for regulatory data
Regulatory data can change without notice due to various conditions in the
WLAN sub-system. Therefore, to protect integrity of regulatory data,
always use a copy of the data.

Change-Id: If2c5c45c421e7a88285d72ea94d9ad172d22fb7e
CRs-Fixed: 2321516
2018-09-28 14:29:20 -07:00
Vignesh Viswanathan
1824d50480 qcacld-3.0: Do not limit the number of scan results to 4 for Beacon Report
Currently the number of scan entries populated from the scan results
of RRM issued scan for beacon report is limited to 4 entries in
sme_rrm_send_scan_result API. This is inspite of the fact that the
API sme_rrm_send_beacon_report_xmit_ind can handle more than 4 results
and will do the fragmentation of 4 results per frame before sending
it to the RRM.

Remove the limit of 4 entries in sme_rrm_send_scan_result and send
all the valid scan result entries to RRM.

Change-Id: I32448616a9e5f19ee816d60db8fef6e6c2f8908b
CRs-Fixed: 2321077
2018-09-28 14:29:16 -07:00
nshrivas
a6dc6e9ac1 Release 5.2.0.98V
Release 5.2.0.98V

Change-Id: I70e7beec9dafa50d6e2ddaa6a94cf3cef1d4dd9f
CRs-Fixed: 774533
2018-09-28 09:06:24 -07:00
Alok Kumar
0d1acac6bf qcacld-3.0: Unpause the Priority Queue for deficient pools
Priority Queue gets paused due to descriptor deficiency which
needs to be unpaused after distributing descriptors from a
source pool to deficient pool.

Unpause the Priority Queue of deficient pool when avail->desc
count is more than start_th.

Change-Id: Ia91fdd0ac39bf8a4ac42dafa42d346993bf6a38e
CRs-Fixed: 2318031
2018-09-28 09:06:20 -07:00
nshrivas
21d8f4f48f Release 5.2.0.98U
Release 5.2.0.98U

Change-Id: I68016a5716568c82162f2afcbb9860f04f062ce6
CRs-Fixed: 774533
2018-09-28 01:21:16 -07:00
Vignesh Viswanathan
7c43a7a55f qcacld-3.0: Check SME connection status before issuing reassoc
Currently when the supplicant sends a connect with bssid_hint and
prev_bssid, driver issues a roam_invoke (fast reassoc) command to the
FW. However, when this connect is received in the supplicant context
and if the driver is currently processing a disassoc/deauth from the
AP in the mc thread, then the CSR roam connection state would not be
associated but the HDD STA context connection state would still be
associated. In this scenario, since the disconnection is in progress
and VDEV Down might already be sent to the FW, the roam_invoke command
is ignored and FW does not send any response. However the driver
assumes that roaming is in progress and blocks all incoming scan/
connect requests from supplicant leading to a state where no further
connections can go through.

In hdd_reassoc, check the CSR Connection state also to check if
the current state is associated and then issue roam_invoke to FW.

Change-Id: I321e99b060d6ce22517a3dd604b0f4d08dd5918d
CRs-Fixed: 2319641
2018-09-28 01:21:15 -07:00
Abhishek Singh
8e913fa1ec qcacld-3.0: Handle channel switch failure in START_RESTART_PROGRESS
During CAC wait if radar indication is found, SAP try to switch to
new channel. If this channel switch fails, SAP is stopped
internally.

This stopped indication is not handled if VDEV state is
START_RESTART_PROGRESS and thus vdev down is not sent to vdev FSM.

Handle SAP stop in START_RESTART_PROGRESS vdev state.

Change-Id: I92e48cc9a85249c88315fbb09fe1a61bd07983fd
CRs-Fixed: 2322996
2018-09-28 01:21:11 -07:00
nshrivas
42900d5081 Release 5.2.0.98T
Release 5.2.0.98T

Change-Id: Ic3ac46cbcee198f0ad277d5c78aeb8a969f78cd9
CRs-Fixed: 774533
2018-09-27 23:41:50 -07:00
Dundi Raviteja
85a240a6c0 qcacld-3.0: Relocate IE whitelist cfg items
Relocate IE whitelist config items to FW offload component.

Change-Id: Idcb665f4d6069c0723b0a8ae17e54d8cbe71239d
CRs-Fixed: 2316597
2018-09-27 23:41:49 -07:00
nshrivas
e18038af1c Release 5.2.0.98S
Release 5.2.0.98S

Change-Id: Ie028a078d606b42b9e78574a1cacea7a8f6052ec
CRs-Fixed: 774533
2018-09-27 20:24:25 -07:00
Rajeev Kumar
6c3db86e5b qcacld-3.0: Remove enter and exit logs from bus bw handler
HDD bus bandwidth handler runs every 100ms and enter, exit logs
at every 100 ms is over flowing driver log buffer hence remove
hdd_enter and hdd_exit logs from __hdd_bus_bw_work_handler.

Change-Id: Ia3a3163eebf442af7371bb0bcd09bccff1f199d9
CRs-Fixed: 2323286
2018-09-27 20:24:24 -07:00
Dundi Raviteja
fb9357aa38 qcacld-3.0: Create psoc in hdd_context_create just after cfg_parse
HDD config params are getting used before creating and storing psoc
in hdd context which may cause NULL pointer dereference of psoc.

To mitigate this create psoc and parse cfg ini params just after
cfg_parse() in hdd_context_create().

Change-Id: Ida2b81eef0ebbfba2749ca89b63980201830a5e2
CRs-Fixed: 2321959
2018-09-27 20:24:21 -07:00