Commit Graph

8598 Commits

Author SHA1 Message Date
Himanshu Agarwal
75c8d796d9 qcacld-3.0: Set high priority as false for stop bss sme command
When stop AP command is received from hostapd, all the stations
are deauthenticated and then stop bss is called. But stop bss is
called with high priority as true and so gets queued on the top
of the list while del sta commands are queued at the tail as high
priority is set to false for those. This leads to desynchronization
as the commands are not serialized.

Set high priority as false for stop bss sme command to serialize all
the commands.

Change-Id: I9c80032c418e05d3b5591bb3cfd70f8285f27fe8
CRs-Fixed: 2161257
2017-12-21 11:32:32 -08:00
wadesong
f13dbd60e9 qcacld-3.0: Suppress verbose WMA debug printing
The eGAP status update event handler is exhibiting a too verbose
debug printing.

Supress the eGAP status update by increasing the debug level.

Change-Id: I85e290abfe03d488ab770a3a403871d984ee8df9
CRs-Fixed: 2161713
2017-12-21 11:32:29 -08:00
snandini
e4ee084f0a Release 5.2.0.59
Release 5.2.0.59

Change-Id: I12dbca198663792d9b8dbc2340d80a30dbae52df
CRs-Fixed: 774533
2017-12-21 09:21:47 -08:00
Ashish Kumar Dhanotiya
a60c1754b3 qcacld-3.0: Possible buffer overwrite in vendor scan request
In api "__wlan_hdd_cfg80211_vendor_scan", the ssid length is u8,
when memcpy is done for ssid, the length is not validated and
nla_len(attr) is used directly in memcpy which can result in buffer
overwrite.

Add a check to validate the max length of scan ssid against
SIR_MAC_MAX_SSID_LENGTH.

Change-Id: If4c25710973ee50094c5d52410269962f552ac3f
CRs-Fixed: 2153326
2017-12-21 09:21:46 -08:00
snandini
19fd6ba846 Release 5.2.0.58Z
Release 5.2.0.58Z

Change-Id: I190092f4cfe1338458e5f3e76ae9af6120317fc9
CRs-Fixed: 774533
2017-12-21 05:26:43 -08:00
Yeshwanth Sriram Guntuka
9b9eb43d00 qcacld-3.0: Set passive dwell time
Set passive dwell time to 28msecs for active
scan when bt a2dp is enabled and hw is not dbs
capable and when sta is connected on 2G band.

Change-Id: I44f2e3d98f2d7ddc52e4902ba989131c256da4ef
CRs-Fixed: 2146311
2017-12-21 05:26:42 -08:00
snandini
8841c95cf1 Release 5.2.0.58Y
Release 5.2.0.58Y

Change-Id: Iefda078904b76b7f986dfe9effc9a71d8ee9bbfa
CRs-Fixed: 774533
2017-12-21 01:39:12 -08:00
Naveen Rawat
2f13193c4a qcacld-3.0: Fix handler for operating mode action frame
Do not drop operating mode action frame if channel bonding is disabled.
Process NSS change if requested by frame.

Change-Id: Id342c5399a70be8ea1b3d6c9878983a75ca456ad
CRs-Fixed: 2157167
2017-12-21 01:39:11 -08:00
snandini
d0f8724f02 Release 5.2.0.58X
Release 5.2.0.58X

Change-Id: I33debbe901ff3ff4b4b9a90c1ec8ae5324ca0c0f
CRs-Fixed: 774533
2017-12-20 21:27:56 -08:00
Poddar, Siddarth
61fbc93f6e qcacld-3.0: Enable pktlog after SSR/PDR if previously enabled
Implement a flag in hdd context to track the state of
pktlog events. Pktlog will be enabled/disabled after SSR/PDR,
depending upon the state of Pktlog events just before SSR/PDR
is triggered.

Change-Id: I18999d7fcf3677a86c21559d7d443ba1cd086528
CRs-Fixed: 2151296
2017-12-20 21:27:56 -08:00
snandini
3228756801 Release 5.2.0.58W
Release 5.2.0.58W

Change-Id: I21ae25f0ada369275c945cf3e0fd9f376ccc4646
CRs-Fixed: 774533
2017-12-20 19:27:31 -08:00
gaurank kathpalia
0efbb56f81 qcacld-3.0: Change default value of g_is_bssid_hint_priority to 0
Change default value of g_is_bssid_hint_priority to 0, as the driver
scoring logic will take care of the beat AP to select from the candidate
AP and the host can ignore the hint.

Change-Id: Ia372e3e0f580047eae33cc0b68b0a0d1460ebfc2
CRs-Fixed: 2160591
2017-12-20 19:27:30 -08:00
Dustin Brown
4c5b990170 qcacld-3.0: Add hdd_check_for_leaks function docs
In cases where memory allocated at runtime is release during module
unload, it is tempting to label these memory leaks as false positives.
Add documentation to hdd_check_for_leaks explaining why these are real
memory leaks. This helps reduce confusion, and helps to dissuade
developers from "fixing" the runtime memory leak logic, instead of
fixing the memory leak.

Change-Id: I2f7574e7465630d2d9f96280ecf8180a51b41e0f
CRs-Fixed: 2161394
2017-12-20 19:27:27 -08:00
Yuanyuan Liu
23a8eecd28 qcacld-3.0: remove struct sps_iovc reference
Since struct sps_iovc is obsolete in the latest kernel,
use a local macro instead of sizeof() . It should be
updated with the correct IPA size macro once it is
avaiable in the latest kernel.

CRs-Fixed: 2160658
Change-Id: Ifc2926d5182c96e07de6b4ddd50156764b7ad51e
2017-12-20 19:27:24 -08:00
gaurank kathpalia
16a721a680 qcacld-3.0: Fix memory leak issue of ch_list in sap_get_channel_list
In the api sap_get_channel_list, list is allocated memory to store the
channel list to be sent for scan request. This api is called by
sap_goto_channel_sel which initializes scan_request.ChannelInfo.ChannelList
to channel_list, without any prior NULL check of channel_list.
Also in scan callback wlansap_scan_callback, if the state machine structure
is in disconnected state , the host returns without freeing the memory
allocated to the channel list in sap_ctx .

Fix is to free the memory allocated to the channel list
and make the sap_ctx->channellist, sap_ctx->num_of_channel
as NULL and zero respectively in both the instances.

Change-Id: Ia54287d6e77e206c717bd3c205ebe57510ea801c
CRs-Fixed: 2159489
2017-12-20 19:27:21 -08:00
snandini
a3726d9963 Release 5.2.0.58V
Release 5.2.0.58V

Change-Id: Ie916f23741b2b4e4df2e72cfbbe37ff96bfb89df
CRs-Fixed: 774533
2017-12-20 15:26:55 -08:00
gaurank kathpalia
addd8a0b0d qcacld-3.0: Change default value of pcl_weightage to 0
Change default value of pcl_weightage to 0, as pcl
weightage logic need some changes in algo to be used in LFR3.

Change-Id: I21559f7aaa8a19388cf399dee684c00c7905cfae
CRs-Fixed: 2160589
2017-12-20 15:26:54 -08:00
snandini
573d5d914f Release 5.2.0.58U
Release 5.2.0.58U

Change-Id: I5fcc1557ecc1a35798e204fdb043a0c971fbfe30
CRs-Fixed: 774533
2017-12-20 14:10:32 -08:00
Naveen Rawat
a015a2f712 qcacld-3.0: Support HE dual band by default
Add support for dual band in HE caps by:
1) Setting default value of HE dual_band support to 1.
2) Checking advertised FW MAC cap for support of both bands.

Change-Id: I978e4082364b832dc3f49f13a00ef9159f269f72
CRs-Fixed: 2160792
2017-12-20 14:10:31 -08:00
psimha
deea0a130c qcacld-3.0: Add fixes to prevent NULL pdev access on module stop
- Change the order of the deinit code of pktlog
- Change the order of the deinit code of runtime pm

Change-Id: I570b20b247b7892f9bba82f3d3a58aff9af09105
CRs-Fixed: 2160794
2017-12-20 14:10:28 -08:00
snandini
dfe8f777e3 Release 5.2.0.58T
Release 5.2.0.58T

Change-Id: I2139644bedeaed60f06d34c6582871c58236057a
CRs-Fixed: 774533
2017-12-20 07:26:07 -08:00
Paul Zhang
72697bdc04 qcacld-3.0: Add ini hostscan_adaptive_dwell_mode_no_conn
This ini will set the algo used in dwell time optimization
during host scan without connection.

Change-Id: Ie81636d32b6c42651aa9b5de52889970c17f6aca
CRs-Fixed: 2159656
2017-12-20 07:26:06 -08:00
snandini
75f57b9cc4 Release 5.2.0.58S
Release 5.2.0.58S

Change-Id: I67386963967b0cffe12bb688d226bf9d16b38dca
CRs-Fixed: 774533
2017-12-20 05:38:38 -08:00
Kiran Kumar Lokere
4aa08a5c14 qcacld-3.0: Add configuration support for he dynamic fragmentation
Add user configuration for HE dynamic fragmentation capability
support

Change-Id: I94a18b5102b1ee303ccbf832e67c37930f523bec
CRs-Fixed: 2159864
2017-12-20 05:38:38 -08:00
snandini
82348f5aa4 Release 5.2.0.58R
Release 5.2.0.58R

Change-Id: Ic553857324b7ebc286135c34962b167f1d2f8cb3
CRs-Fixed: 774533
2017-12-20 02:26:58 -08:00
Amar Singhal
6c0c0d9f2b qcacld-3.0: Change the name of the sysfs path
Use string "wifi" instead of "wlan" in sysfs path for version string.
This is to avoid warning for same string name in the path.

Change-Id: Ifadabdb3e89d9a6564bbda58241f3ff38eeb4eb1
CRs-Fixed: 2153885
2017-12-20 02:26:58 -08:00
Amar Singhal
0928b19abe qcacld-3.0: Add sysfs interface for retrieving version information
User-space needs sysfs interface for retrieving version
information for both firmware and driver. Add this new
sysfs interface.

Change-Id: I666aff1868f4d1d954773fae1ae85c1ebd0fdc87
CRs-Fixed: 2153885
2017-12-20 02:26:54 -08:00
snandini
b98b8b0849 Release 5.2.0.58Q
Release 5.2.0.58Q

Change-Id: I2f472f4d401098b4e3baf37e5a3e984728763c72
CRs-Fixed: 774533
2017-12-20 01:38:52 -08:00
gaurank kathpalia
2690098b55 qcacld-3.0: Fix condition to ignore security in scan filter
In api csr_prepare_scan_filter,If bWPSAssociation is set or
bOSENAssociation is set, the security check  while filtering
scan results need to be skipped.

Fix is to check for both bWPSAssociation and bOSENAssociation
to set the ignore security flag in converged scan filter

Change-Id: I1e850581ab1cd3b313e681bfd110280765fa6a2a
CRs-Fixed: 2161103
2017-12-20 01:38:51 -08:00
Poddar, Siddarth
d021751ded qcacld-3.0: Fix to get correct 64-bit htt rx address
Fix is to get correct 64-bit htt rx in order address
when ENABLE_DEBUG_ADDRESS_MARKING is disabled.

Change-Id: I479ed4a2dd5cee3427f9a3714cda4ed50afa271a
CRs-Fixed: 2161207
2017-12-20 01:38:48 -08:00
Wu Gao
9c01ec4ae5 qcacld-3.0: Update channel width and set channel for SAP
It does not set channel width and set channel for HT40 mode SAP, which
causes SAP start at HT20 mode by default.

Change-Id: Ia29c44d897384569249149bccf8d3e0516cce0ce
CRs-Fixed: 2158079
2017-12-20 01:38:45 -08:00
snandini
fd681e44db Release 5.2.0.58P
Release 5.2.0.58P

Change-Id: I60369e0643783be1db4a47a1dfcb356341a54f82
CRs-Fixed: 774533
2017-12-20 00:07:47 -08:00
Dustin Brown
45ed4bbeaa qcacld-3.0: Print drv ops inactive thread call stack
As part of the wlan driver handlers for kernel ndo events, an inactivity
timer (effectively a watchdog timer) is started. This allows us to catch
instances where drvier operations take much longer than expected. In
cases where this inactivity timer expires, print the stack trace of the
inactive thread to expedite debugging efforts.

Change-Id: I4427207a5cd7d232486ce453555765f7e0f4fe17
CRs-Fixed: 2160837
2017-12-20 00:07:46 -08:00
snandini
4fea99d090 Release 5.2.0.58O
Release 5.2.0.58O

Change-Id: I673f57131e8243fc39ef8f11ba65093f1d633365
CRs-Fixed: 774533
2017-12-19 13:37:37 -08:00
Will Huang
9adefff55a qcacld-3.0: Use correct wmi event id when register wmi event
WMI_xxx_EVENTID must re-define as wmi_xxx_event_id, otherwise module
init will fail when check event id.

Change-Id: Icf0562ddb9c6fd90b553ce06e502575d9e69b8d3
CRs-Fixed: 2159607
2017-12-19 13:37:36 -08:00
snandini
74683f3488 Release 5.2.0.58N
Release 5.2.0.58N

Change-Id: I901ba7e84cdf56d3defc1778ac3122c1bf87b5d5
CRs-Fixed: 774533
2017-12-19 09:26:42 -08:00
Yeshwanth Sriram Guntuka
3e4d96fbfa qcacld-3.0: Add check to validate vdev id
Get ARP stats command is sent to firmware with
inactive vdev id in stats param resulting in
firmware crash.

Fix is to add check to validate vdev id before
sending get ARP stats command to firmware.

Change-Id: I1483573f4f9649c307f8d47466d9c7e234e9a78e
CRs-Fixed: 2161031
2017-12-19 09:26:41 -08:00
Poddar, Siddarth
4bbe4fc724 qcacld-3.0: Do not log pktlog event when monitor mode is ON
In case of Monitor mode, headroom of skb, which originally
contains rx_desc data, is overwritten by radio tap header.

Host pulls skb data by radio tap header and the same skb is
passed on to packet log function which expects payload to
point to skb-> data and end up in wrong access.

Moreover, pktlog is meant to log rx_desc information which is
already overwritten by radio header and hence pkt logging is
of no use in this case.

CRs-Fixed: 2159130
Change-Id: Id19c0371a0ed31c70ada788fc2b396a8b1eac1f1
2017-12-19 09:26:38 -08:00
snandini
dc84a5ca07 Release 5.2.0.58M
Release 5.2.0.58M

Change-Id: Idc8d1c8816bf84cd12cec02c4bbe21b5ef5a77a4
CRs-Fixed: 774533
2017-12-19 03:48:40 -08:00
Hanumanth Reddy Pothula
8fcade5661 qcacld-3.0: Resolve overflow while processing setHostOffload ioctl
qcacld-2.0 to qcacld-3.0 propagation

While processing setHostOffload ioctl there is a possibility of
sending invalid data to lower layers as user sent data structure
is different from local buffer structure.
To mitigate this issue, initialize local buffer to zero and then
update local buffer member by member.

Change-Id: I657d2a8c7d37435b1ad28ef6de60ea80a235ead9
CRs-Fixed: 2152143
2017-12-19 03:48:40 -08:00
snandini
05e2b52b45 Release 5.2.0.58L
Release 5.2.0.58L

Change-Id: I09d2af76a72834827e201b7aee18b62b15b19a98
CRs-Fixed: 774533
2017-12-18 21:48:34 -08:00
Rajeev Kumar
b0ef982be7 qcacld-3.0: Log critical suspend/resume log using info level
Log critical suspend/resume log using info log level such that
driver 3 stage suspend/resume state is known from available logs.

Change-Id: Id17133d406f2366058198b38445d7ff6afba3764
CRs-Fixed: 2160041
2017-12-18 21:48:33 -08:00
Lin Bai
1c67848386 qcacld-3.0: Fix FTM mode malfunction and memory leak
Current driver will create two apdaters in FTM mode, with device_mode
STA and P2P, where STA is incorrect and P2P is unnecessary.
And those types will cause memory leak in
qdf_mem_malloc()/sme_deregister_mgmt_frame(), when unloading driver.

Also, it is improper to fix the interface name to wlan0 for FTM mode,
as some platforms may use different naming rule.

Only create one adapter with FTM mode, with variable interface name.

CRs-Fixed: 2160513
Change-Id: If3bf4444e5535e6fe88c3ad2d87da217534984a0
2017-12-18 21:48:31 -08:00
Jeff Johnson
876c1a6d35 qcacld-3.0: Use enum QDF_GLOBAL_MODE
Change "qcacmn: Rename enum tQDF_GLOBAL_CON_MODE" (qca-wifi-host-cmn
Change-Id I57933a62f6ce02b6594d97198be8132e61e8d1f6) renamed enum
tQDF_GLOBAL_CON_MODE to QDF_GLOBAL_MODE. Update all references to use
the new name.

Change-Id: I0e806e87a4c4828279dee83450b1fc20a236c9d3
CRs-Fixed: 2158636
2017-12-18 21:48:28 -08:00
snandini
ea3575092b Release 5.2.0.58K
Release 5.2.0.58K

Change-Id: Icda918f25b504987a3742db1bd6f407e826ad866
CRs-Fixed: 774533
2017-12-18 18:27:43 -08:00
Kabilan Kannan
44a5837f36 qcacld-3.0: Update tdls config as per target configuration
Update the default tdls configuration based on target
configuration

Change-Id: I13335f9492c218975cbd725f3e604d396379eec3
CRs-Fixed: 2159887
2017-12-18 18:27:42 -08:00
snandini
419b5d95cc Release 5.2.0.58J
Release 5.2.0.58J

Change-Id: I4b035e766f96fadfc1e69bee80ab1c4df771f9c2
CRs-Fixed: 774533
2017-12-18 15:55:09 -08:00
Amar Singhal
f0a94adf46 qcacld-3.0: print the source of country code
Country code can be set by multiple sources. Print the source of country
code for debug purposes.

Change-Id: I54f8237de540d7a0d01671148109130a28516670
CRs-Fixed: 2149684
2017-12-18 15:55:08 -08:00
Naveen Rawat
269b4ed0a7 qcacld-3.0: Add ini to control chain mask for 2G and 5G
Add ini parameters to control chain mask in 2G and 5G band.

Change-Id: I336c4598164c55d923f20b748fb189654b713102
CRs-Fixed: 2155583
2017-12-18 10:45:05 -08:00
snandini
0a448122a4 Release 5.2.0.58I
Release 5.2.0.58I

Change-Id: I16574b10260659b00fa41483cf36371960432989
CRs-Fixed: 774533
2017-12-18 05:39:56 -08:00