Commit Graph

5758 Commits

Author SHA1 Message Date
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
Houston Hoffman
b4d4567fa0 qcacld-3.0: Enable NAPI for lithium
Enable napi and irq affinity for lithium.

Change-Id: Icd90dd6f9e5f4d9b88b8493021e1e6a934678cf6
CRs-Fixed: 2057228
2017-07-13 03:38:06 -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
Kapil Gupta
8731e8124a qcacld-3.0: reset reference count of bss if memory alloc fail
In case of reassoc event handler, it may be possible that driver
doesn't inform kernel about the new bss as well as doesn't reset
the reference count of this bss due to memory allocation failure.

Add changes to reset bss reference count if memory allocation
failed.

Change-Id: I6844d9387dd018e24a4d15bd567294e08ae43941
CRs-Fixed: 2075074
2017-07-12 14:44:24 -07:00
snandini
cb21c5daed Release 5.2.0.34O
Release 5.2.0.34O

Change-Id: I357cee60807da504076b6e7ac05a4bda48563b00
CRs-Fixed: 774533
2017-07-12 12:55:57 -07:00
gaolez
3b07a2cdbd qcacld-3.0: Fix SAP omit send action frame issue
qcacld-2.0 to qcacld-3.0 propagation

Checking every node in STA hash table when sending action frame. When
sending action frame, the driver will loop through the STA info hash
table to find all the STA need to recv unicast action frame. The STA
info stored in hash table from the second node to the last, the first
node is empty. But the current loop through policy lost the last node,
so change the loop count to fix this issue.

Change-Id: I323d7af5ea0871677ebf8bebe88eaff072efdac8
CRs-Fixed: 1098738
2017-07-12 12:55:56 -07:00
gaolez
8a61fd27a0 qcacld-3.0: update default wep index for group key
For encryption mode is WEP40 or WEP104, the default key index should
be set. if not set, the group key index will be zero always.

Change-Id: I3f2dae9d7b6cd4fbb7aa2882e6a5e89cf759cd11
CRs-Fixed: 2065988
2017-07-12 12:55:55 -07:00
snandini
b9bfb9e0dc Release 5.2.0.34N
Release 5.2.0.34N

Change-Id: I25716e84fc57d9d3c02b5875375b28515e1fadb3
CRs-Fixed: 774533
2017-07-11 19:58:04 -07:00
Varun Reddy Yeturu
66899fe9e7 qcacld-3.0: Fix roam start not being sent to firmware
Fix the restriction of not sending ROAM_START command if the
previously sent command was an UPDATE_CFG command. There is
no such requirement.If the framework sends a BLACK_LIST update
command, then it is sent to firmware even in case of disconnected
state for the sake of PNO. The subsequent connection triggers a
ROAM_START command and it is not sent to the firmware due to
the current restriction

Move the global flag of saving the status of roam start sent to
firmware into the session

If a ROAM STOP is being sent to the firmware directly to WMA, then
update the relevant flags in the session

Change-Id: I6c42bc7d1e10352883edc7e715ea1418835cd142
CRs-Fixed: 2074836
2017-07-11 19:58:03 -07:00
snandini
7daf96a5e5 Release 5.2.0.34M
Release 5.2.0.34M

Change-Id: Ic3e1016233b3cf3dc0df37726b616e269d6809ea
CRs-Fixed: 774533
2017-07-11 12:56:59 -07:00
Abhishek Singh
7e95dbc9f6 qcacld-3.0: Cleanup the sme session if sme open session times out
Call sme close session if sme open session times out, to clean up
the vdev created.

Change-Id: Icd718138d0198a6285243a15eb56ce912149f038
CRs-Fixed: 2043263
2017-07-11 12:56:58 -07:00
snandini
4e5c5dfc2e Release 5.2.0.34L
Release 5.2.0.34L

Change-Id: I2dde52343c354f3c79c70e3dc8c1fd8663f400f1
CRs-Fixed: 774533
2017-07-11 12:08:09 -07:00
Abhishek Singh
2e1a11a6b0 qcacld-3.0: Fix buffer overflow in wmi roam scan filter cmd
The length of buffer used to send wmi roam scan filter cmd is not
properly calculated and the length is less than the data to be copied.

Fix it by properly calculating the length of the buffer.

Change-Id: I971ff3c1313d617cc3174150c738ba20f931d2a1
CRs-Fixed: 2072064
2017-07-11 12:08:09 -07:00
Dustin Brown
a7e6a5c19d qcacld-3.0: Address mScanPending issues
Address the following issues identified for mScanPending:

* Do not ensure mScanPending is set in hdd_cfg80211_scan_done_callback
* Always set mScanPending to false in hdd_start_all_adapters

Change-Id: I233b8208cea0661c1d8834704e44a311e662dc47
CRs-Fixed: 2073232
2017-07-11 12:08:07 -07:00
snandini
def07eb4fa Release 5.2.0.34K
Release 5.2.0.34K

Change-Id: I51259c13d3e7e3b8927149d49b7c0211e82251e0
CRs-Fixed: 774533
2017-07-11 07:27:14 -07:00
Kapil Gupta
ab7961d7f9 qcacld-3.0: Changes to retain value of snr_monitor_enabled
snr_monitor_enabled in the mac context can be overwritten while
applying sme config again.
Add changes to retain value of snr_monitor_enabled from initial
configuration.

Change-Id: I60522fa27407506522efb45a9c5d3e7a5ac04ef2
CRs-Fixed: 2056870
2017-07-11 07:27:14 -07:00
Kapil Gupta
c1224bf234 qcacld-3.0: Changes to correct channel flags for vendor ACS
In the reg channel info which is sent to external channel
selection daemon, Some channel flags are missing which causes
application to select wrong channel.

Add changes to correct channel flags.

Change-Id: I80834dd7f5f4bfbd2fce88084a938356a741140c
CRs-Fixed: 2068354
2017-07-11 07:27:12 -07:00
snandini
a325d47b46 Release 5.2.0.34J
Release 5.2.0.34J

Change-Id: I5f0ef64d3bb160a293dca3d964a2e2bed50e1e9f
CRs-Fixed: 774533
2017-07-11 05:47:39 -07:00
Srinivas Girigowda
aa6852824a qcacld-3.0: Fix clang warning implicit conversion enum type QDF_STATUS
warning: implicit conversion from enumeration type 'QDF_STATUS' to
different enumeration type 'enum tSirRetStatus' [-Wenum-conversion].

Change-Id: I4627325a927c36f3c4f9bb6d89f04146784d458a
CRs-Fixed: 2055487
2017-07-11 05:47:38 -07:00
Srinivas Girigowda
3ea486def5 qcacld-3.0: Fix clang warning implicit conversion enum hdd_wmm_user_mode
warning: implicit conversion from enumeration type 'enum hdd_wmm_user_mode'
to different enumeration type 'eCsrRoamWmmUserModeType' [-Wenum-conversion].

Add a utility function to convert enum hdd_wmm_user_mode to
eCsrRoamWmmUserModeType.

Change-Id: Iefbe7dd55bd51da2e019b528d64f9889abfd4d32
CRs-Fixed: 2055487
2017-07-11 05:47:36 -07:00
Srinivas Girigowda
bbbecad526 qcacld-3.0: Fix clang warnings implicit conversion enum pkt_filter_action
warning: implicit conversion from enumeration type 'enum pkt_filter_action' to
different enumeration type 'eSirReceivePacketFilterType' [-Wenum-conversion]

Change-Id: Idc819573712a54676ed0ba84d2032d80fd78b3b7
CRs-Fixed: 2055487
2017-07-11 05:47:34 -07:00