Commit Graph

5483 Commits

Author SHA1 Message Date
Srinivas Girigowda
11c28e0022 qcacld-3.0: Replace NL80211_BAND_2GHZ with HDD_NL80211_BAND_2GHZ
warning: implicit conversion from enumeration type 'enum
nl80211_band' to different enumeration type 'enum ieee80211_band'
[-Wenum-conversion]

Replace NL80211_BAND_2GHZ with HDD_NL80211_BAND_2GHZ and
NL80211_BAND_5GHZ with HDD_NL80211_BAND_5GHZ.

Change-Id: I15a905a599b87fc1a876c5f1b7bd6d69b2ba0f15
CRs-Fixed: 2055487
2017-07-17 20:55:22 -07:00
Srinivas Girigowda
38f1deda4e qcacld-3.0: Fix clang warnings implicit enum nl80211_band
warning: implicit conversion from enumeration type 'enum
nl80211_band' to different enumeration type 'enum ieee80211_band'
[-Wenum-conversion]

Change-Id: I084e015626611ae90be00b11a599ae82f9bf6f60
CRs-Fixed: 2055487
2017-07-17 20:55:20 -07:00
Srinivas Girigowda
d3b31e205a qcacld-3.0: Fix clang warnings in LIM
qcacld-3.0/core/mac/src/pe/lim/lim_process_mlm_req_messages.c:487:10:
warning: implicit conversion from enumeration type 'enum eSirRetStatus'
to different enumeration type 'tSirResultCodes'
(aka 'enum eSirResultCodes') [-Wenum-conversion]

qcacld-3.0/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c:459:37:
warning: implicit conversion from enumeration type 'tLimSmeStates'
(aka 'enum eLimSmeStates') to different enumeration type 'tLimMlmStates'
(aka 'enum eLimMlmStates') [-Wenum-conversion].

Change-Id: I649618105b220d69c8b79dcae0983ae6d75746c0
CRs-Fixed: 2055487
2017-07-17 20:55:19 -07:00
Srinivas Girigowda
7f8cb144b8 qcacld-3.0: Fix clang warnings implicit conversion from enum tLimSmeStates
warning: implicit conversion from enumeration type 'tLimSmeStates
(aka 'enum eLimSmeStates') to different enumeration type 'tLimMlmStates'
(aka 'enum eLimMlmStates') [-Wenum-conversion].

Change-Id: I659776ce18feaf1e566d6c9ff5cbd6d348016d65
CRs-Fixed: 2055487
2017-07-17 20:55:17 -07:00
snandini
d0072c5516 Release 5.2.0.35B
Release 5.2.0.35B

Change-Id: I9e5594851d10f1fda5274f6a638b5d6a7f7494d6
CRs-Fixed: 774533
2017-07-17 20:05:16 -07:00
Varun Reddy Yeturu
9e0032c720 qcacld-3.0: Use API to change the connection state
Use the API hdd_conn_set_connection_state to change the
HDD connection state

Change-Id: I3635cec841a3788c9576e8e49ab859e21d89e32d
CRs-Fixed: 2076017
2017-07-17 20:05:14 -07:00
snandini
9c9e34211d Release 5.2.0.35A
Release 5.2.0.35A

Change-Id: I46f1e1103bdaea51e6724ba4a1eb1b3389ce2a90
CRs-Fixed: 774533
2017-07-17 18:29:15 -07:00
Will Huang
48701e295f qcacld-3.0: Move short name redefinitions from qca_vendor.h
These short name redefinitions should just be used in source file for
convenience, should not exist in qca_vendor.h where interfaces are
defined there.

To avoid checkin two way dependencies, add ifndef/define in source file
and first checkin qcacmn head file which remove these redefinitions,
then remove these ifndef/define from source file in another change.

Change-Id: I5318de88b569085f26212e960b79048e8a2481a8
CRs-Fixed: 2076521
2017-07-17 18:29:15 -07:00
Wu Gao
3545e64d4a qcacld-3.0: Cleanup DFS CAC timer when SSR and reset all adapters
In SAP and SSR case, it won't cleanup DFS CAC timer until up layer
kill hostapd. It will call wlansap close when hostapd exit. If
enable sap internal restart in this case, it will double init DFS CAC
timer, which cause abnormal in kernel. Solution is cleanup DFS CAC
timer when reset all adapters.

Change-Id: I96962349af548074e226976c8c01cd5a8710ed3f
CRs-fixed: 2075904
2017-07-17 18:29:13 -07:00
snandini
421838aae6 Release 5.2.0.35
Release 5.2.0.35

Change-Id: I2f0bc975e4ac5432fb265f0086585b800d87765a
CRs-Fixed: 774533
2017-07-17 17:39:00 -07:00
Varun Reddy Yeturu
0648801140 qcacld-3.0: Do not send RSO Stop when roam sync is in progress
Avoid sending a RSO stop because of a disconnect when roam
sync is in progress. It is not needed to send a RSO stop
since the host would eventually trigger a disconnect and
send down an RSO stop anyways. Sending a RSO stop woould lead
to unnecessary complication where the firmware would send
a HO_FAIL and then this would be queued and the host disconnect
would be handled first and as part of processing the user
disconnect, a peer delete would be sent down to firmware,
which has already been cleaned up by the firmware earlier.

Change-Id: Ic89f97308c3d63977dda61fcadc450432fb16524
CRs-Fixed: 2052449
2017-07-17 17:39:00 -07:00
Zhang Qian
65e2e8d072 qcacld-3.0: Add sap operation mode to MAC global context
SAP operation mode is not updated to MAC global context once
user layer APP updates STA roaming policy. This will make
unsafe channel ignoring ineffective.

Change-Id: I5727e950e2097d55daf6745b4f443b89cc681dc8
CRs-Fixed: 2074237
2017-07-17 17:38:58 -07:00
Dustin Brown
12a960213e qcacld-3.0: Populate stats_mask when requesting stats
wma_get_stats_req does not populate the requested statistics bitmask
before forwarding the request to WMI. Popluate the given statistics
bitmask into the WMI request in wma_get_stats_req, so firmware can
provide the desired statistics.

Change-Id: I6dbf7bf1fb2cf6b20bcd4f2fb91f9add5dd3d779
CRs-Fixed: 2075379
2017-07-17 17:38:57 -07:00
Deepak Dhamdhere
64bfe97415 qcacld-3.0: Schedule work for peer_unmap_timer_handler actions
Mutex cannot be used when peer_unmap_timer_handler() calls
cds_trigger_recover() because it runs in soft_irq. Schedule work
to perform the recovery instead.

CRs-Fixed: 2060775
Change-Id: I9a9554ef0aa9288bf5abe22cd2513d8cc41c29d4
2017-07-17 17:38:55 -07:00
bings
5f0ae149d9 qcacld-3.0: Mask sdio host controller interrupts in shutdown
Driver should mask the sdio host controller interrupts in ssr
shutdown callback, or routine mmc_signal_sdio_irq is called
unexpectedly and causes crash.

Change-Id: I8551a7d809bf115d2df9735c8c7a30045f717cd1
CRs-Fixed: 2076658
2017-07-17 17:38:52 -07:00
snandini
775378deef Release 5.2.0.34Z
Release 5.2.0.34Z

Change-Id: I1e11c828b26397b7ac0f98339a286ef11422b6f7
CRs-Fixed: 774533
2017-07-17 01:48:24 -07:00
tfyu
0380a97ccc qcacld-3.0: Do RX packet aggregation for every 16th packet
Do RX packet aggregation for every 16th packet except the ICMP packets,
if the platform is not SMP platform. This change will contribute to improve
standalone SAP/STA RX TPUT when IPA uC offload is enabled by reducing
CPU utilization.

And this change is progagated from CLD2.0 driver with below commits:

bfaad0cb3b0f77d1940eb1d782bd8d125c557bbc
5d960eac83008cad60ff3e7abe1bbebb00b53cf6
c7d2405d7e8e4ba3a5eecbbaa177f4895036a4eb

Change-Id: I256e65ec2399b9b24eec4ccca7fdd662e326838f
CRs-Fixed: 2075793
2017-07-17 01:48:23 -07:00
snandini
d16e80f153 Release 5.2.0.34Y
Release 5.2.0.34Y

Change-Id: I90874e55148075fa12fdedd337643bc717261b4d
CRs-Fixed: 774533
2017-07-16 07:01:28 -07:00
Manjunathappa Prakash
6c54736903 qcacld-3.0: Add changes for Napier flow control
Adds support for flow control on convergence branch.
We will have global pool and each vdev coming up will have the
descriptors allocated from global pool. Tx queue is paused and unpaused
internally in host based on the stop and start thresholds.
Changes are added under compilation flag QCA_LL_TX_FLOW_CONTROL_V2.

Change-Id: I0ccb80b0099f39efad52ccd7d47f2709fdee2a93
CRs-Fixed: 2040457
2017-07-16 07:01:28 -07:00
snandini
ca529d56e4 Release 5.2.0.34X
Release 5.2.0.34X

Change-Id: I42e3fabbdcee46d366f3285dbad26af406a88b01
CRs-Fixed: 774533
2017-07-14 23:51:56 -07:00
Abhishek Singh
e9a1701052 qcacld-3.0: Update addr3 in beacon if addr3 is 0 during roam sync ind
During roam sync indication if the addr3 of the beacon is 0, the
PE session is created with bssid 0. Now if disconnect is received
from AP or heartbeat failure happens, LIM is not able to find the
session from the BSSID and thus VDEV delete is not sent to firmware
but sme session is cleaned up.

If a new connect req is received from supplicant it tries to disconnect
the existing session, but as sme session is not connected, disconnect
is dropped and connect req is processed and thus VDEV start is sent
without VDEV stop leading to firmware crash.

To fix this, if the addr3 of the received beacon/probe in roam sync is
0, update it to BSSID from bssid provided by firmware in the sync
indication.

Change-Id: I9b7e7b6059fbd0e1bb9a59ce28acff469c2ed97b
CRs-Fixed: 2076012
2017-07-14 23:51:56 -07:00
Abhishek Singh
001306866e qcacld-3.0: Use scan reject count along with time to detect scan failure
qcacld-2.0 to qcacld-3.0 propagation

If scan is scheduled after long interval there is a chance that driver
is busy with same reason. i.e if scan is scheduled after 5 min there is
a chance that driver is busy in reassoc both time but this will give false
alarm that driver is stuck.

To reduce this condition include number of scan failures as well
along with time interval.

Change-Id: I6fdd0813541aa5d3d069fe8bf3934cfa47425550
CRs-Fixed: 2064605
2017-07-14 23:51:54 -07:00
Abhishek Singh
4c1ec99d15 qcacld-3.0: Add MBO IE in assoc response for RSSI based assoc reject
Add MBO IE in assoc response to extract params for RSSI based
assoc reject.

Change-Id: I426e99e490c58aff5e1fa90b763dd5f788d63fa5
CRs-Fixed: 2063865
2017-07-14 23:51:52 -07:00
snandini
3f1acb12fe Release 5.2.0.34W
Release 5.2.0.34W

Change-Id: I118492124a0458a2f9b05fbe4de0aece948bfd0d
CRs-Fixed: 774533
2017-07-14 18:34:13 -07:00
Krishna Kumaar Natarajan
85cdd6bb15 qcacld-3.0: Update lim_compute_crc32() to pass uint16_t
Update lim_compute_crc32() to pass uint16_t as a length type.
Currently uint8_t is being passed as length and there will be type
mismatch when authentication frame to be encrypted will be larger
than 255 bytes.

Change-Id: Ic009197c13a2d70c9015a184acff2e82bf80eaba
CRs-Fixed: 2060959
2017-07-14 18:34:12 -07:00
Krishna Kumaar Natarajan
218693aa5a qcacld-3.0: Update SIR_MAC_AUTH_CHALLENGE_LENGTH as per IEEE spec
Update SIR_MAC_AUTH_CHALLENGE_LENGTH to 253 as per IEEE spec.
Currently value of SIR_MAC_AUTH_CHALLENGE_LENGTH is set to 128.
This may result in potential buffer overflow since frame parser
allows challenge text of length upto 253 but driver can not handle
challenge text longer than 128 bytes.

Change-Id: I7baf860fdde51a14a6573b4f0f26817f5071193e
CRs-Fixed: 2060959
2017-07-14 18:34:11 -07:00
snandini
9e63360070 Release 5.2.0.34V
Release 5.2.0.34V

Change-Id: I5d87779aad89507c39d4b3b9882a60badd37b38a
CRs-Fixed: 774533
2017-07-14 17:36:11 -07:00
Mukul Sharma
d75a667472 qcacld-3.0: Move PMO from CMN to CLD
Move PMO from CMN to CLD.

Change-Id: I31380da668ac3305731b8c9906d343a829777591
CRs-fixed: 2071528
2017-07-14 17:36:11 -07:00
Arunk Khandavalli
ba3d558cc3 qcacld-3.0: Add support to load the driver in FTM mode
In Emulation setup its difficult to load the driver in the mission
mode and change the mode to FTM mode because of certain hardware
limitations.
Add support to load the driver in FTM mode.

Change-Id: I7e313d1234a8a01fc601c3f7edd75ca3070302d1
CRs-Fixed: 2074551
2017-07-14 17:36:09 -07:00
snandini
6a868e1065 Release 5.2.0.34U
Release 5.2.0.34U

Change-Id: I1e977d2788a1142dd6d717165faad348f7996c0e
CRs-Fixed: 774533
2017-07-13 18:03:11 -07:00
Kiran Kumar Lokere
75d636fe15 qcacld-3.0: Fix CSA handling to the same channel
Currently CSA event is ignored if the new channel is same as
current channel and there is no check for the BW comparison.
CSA can be done to the same channel with different BW. Allow the
CSA processing with same channel if the CSA has the different BW

Change-Id: Ib12c86dccf1c745dfa66c9e712d283af2df7809e
CRs-Fixed: 1102539
2017-07-13 18:03:11 -07:00
Vidyullatha Kanchanapally
be0ebb3807 qcacld-3.0: Add handler for new WMI BT event
Add handler for the new WMI BT activity event and propagate the BT
event till HDD. These BT activity events will be used for MBO
enhancements to decide whether to accept the BTM request from
AP or not.

Change-Id: I687819fd28c693964b42bfb24eb9dae1858b10a5
CRs-Fixed: 2023728
2017-07-13 18:03:08 -07:00
snandini
41fda32789 Release 5.2.0.34T
Release 5.2.0.34T

Change-Id: I1c6977258081e761f0299796aee41ef1657e57f0
CRs-Fixed: 774533
2017-07-13 03:38:08 -07:00
Abhishek Singh
6451c23fef qcacld-3.0: Use time_after api to take care of jiffies wrap around
jiffies wrap around can cause the confusion that the threshold
time has has elapsed and thus raise false alarm for scan reject.

To fix this use time_after api to take care of jiffies wrap around.

Change-Id: I20c0abbcaab0bea8054c2f497f41e50572008a8c
CRs-Fixed: 2075451
2017-07-13 03:38:07 -07:00
snandini
45e49cbfd3 Release 5.2.0.34S
Release 5.2.0.34S

Change-Id: I1ad316beb2ca220a4d6bcbcdf6cec6f6ec93f812
CRs-Fixed: 774533
2017-07-13 02:46:36 -07:00
Zhu Jianmin
e5594d1410 qcacld-3.0: Fix issue that can't pass Passpoint TC5.2.A
After iwpriv wlan0 reassoc, reassoc resp with status OK, but
csr_roam_state_change doesn't become eCSR_ROAMING_STATE_JOINED,
Keeps JOINING. When disconnect from AP or key timeout, CSR can't
handle eWNI_SME_DISCONNECT_DONE_IND event, no disconnect event
sent to wpa supplicant,  so no reconnect

CRs-Fixed: 2073481
Change-Id: I4966bac1998af95973b5247779fa5e83ad14db93
2017-07-13 02:46:35 -07:00
snandini
0f75e08cba Release 5.2.0.34R
Release 5.2.0.34R

Change-Id: I961c7a60001b2c344b9ecb6c91d6bf6024c5013f
CRs-Fixed: 774533
2017-07-13 01:48:02 -07:00
Srinivas Girigowda
eaf136a65e qcacld-3.0: Fix clang warnings 'taking address of packed member'
warning: Taking address of packed member 're_list' of class or
structure 'dfs_event' may result in an unaligned
pointer value [-Waddress-of-packed-member].

Change-Id: I498aebc7631854774302379a96e844fa11be3ea6
CRs-Fixed: 2055487
2017-07-13 01:48:01 -07:00
Srinivas Girigowda
5fc12a5e27 qcacld-3.0: Fix clang warnings implicit enum tHiddenssId
warning: implicit conversion from enumeration type 'tHiddenssId'
to different enumeration type 'enum nl80211_hidden_ssid'.

Change-Id: I0d6ec78be4d1c9561ee1d3ed1252ed9eb8fdd8ac
CRs-Fixed: 2055487
2017-07-13 01:47:59 -07:00
Srinivas Girigowda
5a1da622ea qcacld-3.0: Advertise set tx power limit capability
Advertise set tx power limit capability.

Change-Id: Ib07ee86079f98f33da3e6e559f04abb6031cc08e
CRs-Fixed: 2074653
2017-07-13 01:47:58 -07:00
Srinivas Girigowda
d06f2cf4e9 qcacld-3.0: Fix clang warnings implicit enum dfs_region
warning: implicit conversion from enumeration type 'enum dfs_region'
to different enumeration type 'enum nl80211_dfs_regions' [-Wenum-conversion]

Change-Id: I742e767ce72cc8507aaadcacec3f0cefd4147791
CRs-Fixed: 2055487
2017-07-13 01:47:56 -07:00
Srinivas Girigowda
74a66d627b qcacld-3.0: Fix clang warnings implicit enum type tAniBool
warning: implicit conversion from enumeration type 'tAniBool'
(aka 'enum eAniBool') to different enumeration type
'eSapBool' [-Wenum-conversion]

Replace tAniBool/eSapBool with bool.

Change-Id: I919488d2accc094049375fffe8b54a5d7dea621e
CRs-Fixed: 2055487
2017-07-13 01:47:55 -07:00
snandini
00c495d844 Release 5.2.0.34Q
Release 5.2.0.34Q

Change-Id: I39b9e78936c9370668d75222f83c0bb17f5d33f5
CRs-Fixed: 774533
2017-07-12 15:42:51 -07:00
yeshwanth sriram guntuka
078310190d qcacld-3.0: Fix memory leak in lim_send_assoc_req_mgmt_frame
Assoc request buffer is not freed in
lim_send_assoc_req_mgmt_frame in failure cases

Fix is to free memory in the failure cases.

Change-Id: I12c350131baff31e2c761d3480abccdf6d78fe0a
CRs-Fixed: 2063965
2017-07-12 15:42:51 -07:00
Varun Reddy Yeturu
7b2a657361 qcacld-3.0: Fix clang warnings in SME
Fix implicit conversion from enumeration type 'tSirRetStatus' (aka 'enum
eSirRetStatus') to different enumeration type 'QDF_STATUS'
Fix implicit conversion from enumeration type 'QDF_MODULE_ID' to
different enumeration type 'CDS_MQ_ID'
Fix implicit conversion from enumeration type 'enum eSirResultCodes' to
different enumeration type 'eCsrRoamResult'
Fix implicit conversion from enumeration type 'enum eSirRetStatus' to
different enumeration type 'tSirMacStatusCodes'
Fix implicit conversion from enumeration type 'sme_QosStatusType' to
different enumeration type 'QDF_STATUS'
Fix implicit conversion from enumeration type 'tSirResultCodes' (aka
'enum eSirResultCodes') to different enumeration type 'QDF_STATUS'

Change-Id: I133992192b797619c7bc593fb65e4ca5ca87702b
CRs-Fixed: 2063149
2017-07-12 15:42:49 -07:00
Varun Reddy Yeturu
d97e8f8fd8 qcacld-3.0: Fix clang warnings in P2P
Fix implicit conversion from enumeration type 'tSirResultCodes' (aka
'enum eSirResultCodes') to different enumeration type 'QDF_STATUS'

Change-Id: I693a7cd5213b5dc58395bbeee04292cf4960c36e
CRs-Fixed: 2063149
2017-07-12 15:42:48 -07:00
Nachiket Kukade
fbd1afcbdb qcacld-3.0: Move initialization of Green AP to start modules
Currently during wlan startup, driver initializes Green AP with
EGAP param. If the interface timer expires driver sends command
to disable EGAP. This causes failure when interface is created
and start modules attempts to start Green AP.
Move initialization of Green AP to start modules.

Change-Id: Id08a1d61c69aeb9096d8eb4bf67fd8c2b5c8822f
CRs-Fixed: 2074556
2017-07-12 15:42:46 -07:00
snandini
00a696368d Release 5.2.0.34P
Release 5.2.0.34P

Change-Id: Ib2ce41b0eed1927bd59491c6c161e4199339d0b0
CRs-Fixed: 774533
2017-07-12 14:44:30 -07:00
Mohit Khanna
b04dfcd09a qcacld-3.0: Add macros to inc/dec peer->ref_cnt
Currently peer ref_cnt increments and decrements are done by the caller
function. Wrap peer->ref_cnt increment and decrement into MACRO calls so
they can be tracked.

Change-Id: I64d8b85d5898545bbc5a4b81101d1fd306de3fc9
CRs-Fixed: 2005652
2017-07-12 14:44:27 -07:00
Wu Gao
1eabdb6027 qcacld-3.0: use adaptive method to cleanup qdf list
It just enumerates qdf list but do not remove element when cleanup
vdev response queue or hold request queue in wma layer, which cause
element duplicate free. Use adaptive method to cleanup them.

Change-Id: I85f71252c6452d31649295cb13aa0eeef2323b5a
CRs-Fixed: 2073394
2017-07-12 14:44:26 -07:00