Commit Graph

10028 Commits

Author SHA1 Message Date
Rajeev Kumar
109683cf30 qcacld-3.0: Add feature flag for PMO component (part-1)
Add feature flag for PMO component such that for high latency
and IoT devices power management and offload component can be
compiled out.

Change-Id: I2c88b6af33e8f10f1837263f157c1f6892a2c2fb
CRs-Fixed: 2227326
2018-04-25 14:30:31 -07:00
nshrivas
4d61b58114 Release 5.2.0.75D
Release 5.2.0.75D

Change-Id: Ib4e8b859b0274a170fec8f8d61b98407efcdedce
CRs-Fixed: 774533
2018-04-25 07:36:19 -07:00
Yun Park
a29974a3ae qcacld-3.0: Remove IPA uC stat log when IPA pipe is suspended
There's an excessive log for IPA uC stat request reason even when
WDI pipe is suspended.
Enable IPA uC stat request reason log only when IPA pipe is resumed.

Change-Id: I35d98e02a9180738bc9cdb25f59e31d572df9e0e
CRs-Fixed: 2181952
2018-04-25 07:36:19 -07:00
nshrivas
4b42917ba0 Release 5.2.0.75C
Release 5.2.0.75C

Change-Id: Ic1527fa44bcc1c1146c4d859fef93f5620d7345a
CRs-Fixed: 774533
2018-04-25 06:26:48 -07:00
Rajeev Kumar Sirasanagandla
92ec9d9742 qcacld-3.0: Avoid log of user buffer in GETIBSSPEERINFO IOCTL
While processing GETIBSSPEERINFO IOCTL command, respective handler
drv_cmd_get_ibss_peer_info() is logging user-buffer which can cause
page fault error.

To fix this, log local buffer (extra) instead of
user buffer (priv_data->buf).

Change-Id: I6260120690c4715de31fe0f9404aa5928c0feb49
CRs-Fixed: 2227050
2018-04-25 06:26:48 -07:00
nshrivas
6a6dbdcf1f Release 5.2.0.75B
Release 5.2.0.75B

Change-Id: I6299ddece23d9a40bbbcddbabfce7473fd589d6c
CRs-Fixed: 774533
2018-04-25 00:43:13 -07:00
Sravan Kumar Kairam
c8eec8a827 qcacld-3.0: Extend support to get IPA HW status on all platforms
Extend support to get IPA HW status on all platforms if IPA OFFLOAD
feature is enabled.

Change-Id: Ideea6b7f058b3d80efecc9473a20d7a31046b4bc
CRs-Fixed: 2230316
2018-04-25 00:43:12 -07:00
nshrivas
ee620b36c0 Release 5.2.0.75A
Release 5.2.0.75A

Change-Id: I4bc280d9e471100a907bbba72413e4d331e4c1bf
CRs-Fixed: 774533
2018-04-24 22:50:00 -07:00
Yun Park
21ec490dbd qcacld-3.0: Cleanup interface when loading/unloading timeout
When AP_DISCONNECT event occurs during IPA resource unloading in
progress, timeout could happen since suspending FW IPA Rx pipe took much
time. This could cause a subsequent AP_CONNECT event failed since no
interface is available.
Fix this by
- Adapter struct sanity check using hdd_validate_adapter()
- Call hdd_ipa_cleanup_iface() for AP_DISCONNECT/STA_DISCONNECT event
  in loading/unloading timeout case
- Assert when no interface is available in hdd_ipa_setup_iface()

Change-Id: Ie96e4f0e96ccffacf4ce5fcc976636c440214873
CRs-Fixed: 2208347
2018-04-24 22:50:00 -07:00
nshrivas
b832282230 Release 5.2.0.75
Release 5.2.0.75

Change-Id: Ibb194a56475acd476e993bf2186172e4aefadb31
CRs-Fixed: 774533
2018-04-24 20:50:27 -07:00
Arif Hussain
4c26513ac4 qcacld-3.0: Fix null pointer dereference in sending probe req
Add null check when accessing additional_ielen in function
lim_send_probe_req_mgmt_frame function to avoid null pointer
dereference.

Change-Id: Ida382b274d211431ba808817cb0d5e9c3f783c0c
CRs-Fixed: 2229848
2018-04-24 20:50:27 -07:00
Naveen Rawat
23183d6c73 qcacld-3.0: Add kernel dependent macros for STA_INFO attributes
Depending on kernel version attrbutes NL80211_STA_INFO_XXX or
STATION_INFO_XXX are being used to update necessary infomation
to user space. Define macros as per kernel version and avoid
usage of kernel version macro within functions.

Change-Id: Ia265fd90d3a3ab8e6431fceb37980778a046c545
CRs-Fixed: 2223575
2018-04-24 20:50:24 -07:00
nshrivas
2618d5747e Release 5.2.0.74Z
Release 5.2.0.74Z

Change-Id: I28a076bbdbcd0bbe08866e2765f626c03515316b
CRs-Fixed: 774533
2018-04-24 18:30:32 -07:00
Amar Singhal
50d3075154 qcacld-3.0: log the regdomain parameters
Log the reg-domain parameters when sending command
WMI_PDEV_SET_REGDOMAIN_CMDID to FW.

Change-Id: I9cc9437b9b9be9a1f7c58ca08a7d6456f9bdebcf
CRs-Fixed: 2229604
2018-04-24 18:30:32 -07:00
nshrivas
f746c186cf Release 5.2.0.74Y
Release 5.2.0.74Y

Change-Id: I720123eab3c9e92950933e037ec957f87c02fff2
CRs-Fixed: 774533
2018-04-24 17:17:26 -07:00
Krunal Soni
e23c41a517 qcacld-3.0: Pull head from skb in monitor mode to make a room for rtap
Some of the platforms delivers the msdu with skb head and skb data
pointing to same address, in such cases do skb pull to create a room
for radiotap hdr and let qdf_nbuf_update_radiotap() API handle creating
room for radiotap header.

Note: When skb head and skb data pointer points to same
address, it indicates that radiotap size is already considered in
headroom.

CRs-Fixed: 2230412
Change-Id: Ide49544873554ae38a49af1511fd5bafd0d25102
2018-04-24 17:17:25 -07:00
nshrivas
b019c3db08 Release 5.2.0.74X
Release 5.2.0.74X

Change-Id: If0bfc40cbab3a0d2b2b5802483f383744d3be369
CRs-Fixed: 774533
2018-04-24 14:48:55 -07:00
Jeff Johnson
172b7d52f2 qcacld-3.0: mac: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Ia4796704a2a564586352d208f779b5d9e73ad029
CRs-Fixed: 2229655
2018-04-24 14:48:55 -07:00
Jeff Johnson
3032101c48 qcacld-3.0: bmi: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Ifce2b7d373a6a1233f091feb3f0e67578715ebeb
CRs-Fixed: 2229655
2018-04-24 14:48:51 -07:00
Jeff Johnson
f8b4d424cf qcacld-3.0: sap: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I05b2f8ed3e48de4347475d279d4de409d4eece42
CRs-Fixed: 2229655
2018-04-24 14:48:48 -07:00
Jeff Johnson
cec401235e qcacld-3.0: cds: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I5aa9814a2c281f28d84c8775480b454fec8ae9bf
CRs-Fixed: 2229655
2018-04-24 14:48:44 -07:00
Jeff Johnson
56e4e36ee8 qcacld-3.0: pld: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Idd9e17b79c5de9206153f3c32965b519665b6a3e
CRs-Fixed: 2229655
2018-04-24 14:48:41 -07:00
Jeff Johnson
1896fdcb30 qcacld-3.0: dp: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Id790fa94c7b6feb91db5f3d91630bf0cd5264192
CRs-Fixed: 2229655
2018-04-24 14:48:38 -07:00
Jeff Johnson
5d310d2a15 qcacld-3.0: sme: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I0f45085f6a98b89a4468849ac00538100d903698
CRs-Fixed: 2229655
2018-04-24 14:48:34 -07:00
Jeff Johnson
f367ac732a qcacld-3.0: hdd: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I616925db8255eb2f1e327cd2ddb3da70d47ca943
CRs-Fixed: 2229655
2018-04-24 14:48:31 -07:00
Jeff Johnson
f6977c5182 qcacld-3.0: wma: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I2eae6b3681fe3c454d3680ac915a983af87ee329
CRs-Fixed: 2229655
2018-04-24 14:48:27 -07:00
Jeff Johnson
1562feb9e0 qcacld-3.0: uapi: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: I08b36fa23168ef514f4bd63f515ae352edc011fe
CRs-Fixed: 2229655
2018-04-24 14:48:24 -07:00
Jeff Johnson
8af32915b0 qcacld-3.0: ipa: Remove legacy markings
Per current guidance remove legacy markings.

Change-Id: Iabff91dc310eab97bccf40db984453c4ef4da2a2
CRs-Fixed: 2229655
2018-04-24 14:48:21 -07:00
Naveen Rawat
ea1ece81ab qcacld-3.0: Ensure two NDI mac address are only 1 bit apart
As per customer requirement in case 2nd NDI is coming up with mac
randomized, make sure its mac address is just 1 bit apart from first
NDI's mac address.

Change-Id: Ifd3d480e4bd3bd74019bd19f23fa8a04b5f8bec5
CRs-Fixed: 2187677
2018-04-24 14:48:18 -07:00
nshrivas
881683a362 Release 5.2.0.74W
Release 5.2.0.74W

Change-Id: I4898de7ddc34bcf14a566355ddb50cb14754b7e6
CRs-Fixed: 774533
2018-04-24 09:04:07 -07:00
Ashish Kumar Dhanotiya
8bfef12b87 qcacld-3.0: Add logging info for dynamic MAC change
Add logging info when the MAC is dynamically changed.

Change-Id: If602377f5242ed49a8ead4f71d3d8f1bd989f61a
CRs-Fixed: 2215053
2018-04-24 09:04:06 -07:00
Ashish Kumar Dhanotiya
959b38c51a qcacld-3.0: Add ini to control for Secondary Retry Feature
Add ini "gEnableSecondaryRate" to Enable/Disable control
for Secondary Retry Feature Set.

It is a 32 bit value such that the various bits represents
different values.

Change-Id: I1348465932f32ee19cd3efb2347ca8d2f59e0904
CRs-Fixed: 2219933
2018-04-24 09:04:03 -07:00
nshrivas
b433b1ee4a Release 5.2.0.74V
Release 5.2.0.74V

Change-Id: Ie3a2de85299b298b6d354b26bd4ac6b5b6e4144c
CRs-Fixed: 774533
2018-04-24 04:26:06 -07:00
Paul Zhang
33fae2710d qcacld-3.0: Config number of TX sw retry per AC
Video/audio wireless application needs to tune parameters
per AC based. Config the number of TX sw retry per AC via
driver INI configuration file. It helps to improve the
video/audio performance in noisy environment.

Change-Id: Icffb5174b265b6453021b0d0a8ad3e12b695847a
CRs-Fixed: 2212954
2018-04-24 04:26:06 -07:00
nshrivas
5869d3c947 Release 5.2.0.74U
Release 5.2.0.74U

Change-Id: Ifca7ffc10ffbaaa9c18581b96d83ca9cba833137
CRs-Fixed: 774533
2018-04-24 02:30:47 -07:00
Rajeev Kumar
6bdee8eb5d qcacld-3.0: Add feature flag for PMO component
Add feature flag for PMO component such that for high latency
and IoT devices power management and offload component can be
compiled out.

Change-Id: I562e2391d4691fe5587920696997275859857646
CRs-Fixed: 2227322
2018-04-24 02:30:47 -07:00
Pragaspathi Thilagaraj
54ac69d1ff qcacld-3.0: Fix OOB write in wma_roam_synch_event_handler
The routine wma_roam_synch_event_handler sends roam indication to the
upper layers. It uses the vdev_id of the synch event to pass the roaming
indication for the vdev session. If the vdevid exceeds the max_bssid
supported, then OOB write occurs in wma_roam_synch_event_handler.

Add check to validate vdev doesnot exceed the maximum bssid configured.
Add check to ensure vdev doesnot exceed max_bssid and return error if
violated.

Change-Id: Ief8b5070fd6cbb375900e2816524dbd946c5238d
CRs-Fixed: 2206569
2018-04-24 02:30:44 -07:00
Paul Zhang
ee09f8eefd qcacld-3.0: Configure the A-MPDU subframe per AC
Video/audio wireless application needs to tune parameters
per AC based. Configure A-MPDU subframe parameter per
AC via driver ini configuration file.

Change-Id: Id63be7aacf6465edee08f7a2f4c8a119f9bd6346
CRs-Fixed: 2212932
2018-04-24 02:30:41 -07:00
Pragaspathi Thilagaraj
b9c4674fda qcacld-3.0: Fix Use after free in wma_vdev_start_resp_handler
In the function wma_vdev_start_resp_handler when we recieve a
vdev start response event, we copy the req_msg->user_data to the
object hidden_ssid_restart of the structure
tpHalHiddenSsidVdevRestart. If hidden_ssid_restart_in_progress
flag is set for the corresponding vdev_id, then we post that
message to the PE and free the hidden_ssid_restart. If this
req_msg->user_data is used again if req_msg->msg_type is
WMA_CHNL_SWITCH_REQ , then a possible Use-After-Free will occur
in  wma_vdev_start_resp_handler.

When a channel switch request has occured, there will not be a
hidden ssid restart event in progress. So add check to validate
if the req_msg->msg_type == WMA_HIDDEN_SSID_VDEV_RESTART.

Change-Id: Ie3195b23ff136fbfd38fcd4d32e993d4cb016316
CRs-Fixed: 2216751
2018-04-24 02:30:37 -07:00
nshrivas
023bf55c6a Release 5.2.0.74T
Release 5.2.0.74T

Change-Id: Ia70f9719d742b5061af28a4d7877badba0178f53
CRs-Fixed: 774533
2018-04-23 22:19:01 -07:00
Jeff Johnson
b9d65f24a3 qcacld-3.0: Relocate hdd_reg_set_band()
Function hdd_reg_set_band() is currently located in wlan_hdd_wext.c,
but this function is independent of wireless extensions, so relocate
it as part of the plan to omit wlan_hdd_wext.c from the build when
wireless extensions is not enabled.

Change-Id: Ia1a359a7781bef6017baf17c8be53c2f9bab2517
CRs-Fixed: 2229769
2018-04-23 22:19:00 -07:00
Jeff Johnson
d81ab0571c qcacld-3.0: Relocate hdd_wlan_get_ibss_mac_addr_from_staid()
Function hdd_wlan_get_ibss_mac_addr_from_staid() is currently located
in wlan_hdd_wext.c, but this function is independent of wireless
extensions, so relocate it as part of the plan to omit wlan_hdd_wext.c
from the build when wireless extensions is not enabled.

Change-Id: If005f7c2295a519b891d3718799f6f826d59e97f
CRs-Fixed: 2229490
2018-04-23 22:18:57 -07:00
Jeff Johnson
11ba331f28 qcacld-3.0: Relocate wlan_hdd_set_filter()
Function wlan_hdd_set_filter() is currently located in
wlan_hdd_wext.c, but this function is independent of wireless
extensions, so relocate it as part of the plan to omit wlan_hdd_wext.c
from the build when wireless extensions is not enabled.

Change-Id: I7377806ad27ec8d6fa361523d290156a7facacac
CRs-Fixed: 2228938
2018-04-23 22:18:54 -07:00
Naveen Rawat
e8b1b82e17 qcacld-3.0: Add implementation of get_tx_power
Add changes to support get tx power from within stats
component.

Change-Id: Ifafee77033b8db75e6c9ad201a26ba8bbe72efd4
CRs-Fixed: 2210333
2018-04-23 22:18:51 -07:00
Naveen Rawat
3ff5cff23e qcacld-3.0: Add implementation of get_wake_lock stats
Add changes to support get wake lock stats from within cp_stats
component.

Change-Id: I93855e4a1635afa97b4d5235ddb9cd92654f943d
CRs-Fixed: 2210330
2018-04-23 22:18:48 -07:00
nshrivas
f4766cdd80 Release 5.2.0.74S
Release 5.2.0.74S

Change-Id: Icb9b166b4420ac1639cee446aed260bf6a50826b
CRs-Fixed: 774533
2018-04-23 12:44:15 -07:00
Dustin Brown
ee22071a17 qcacld-3.0: Use total_len in drv_cmd_p2p_dev_addr()
Avoid userspace overwrite in drv_cmd_p2p_dev_addr() by intersecting the
max output buffer size with the total length of the userspace buffer.
This avoids the overwrite in cases where the allocated userspace buffer
is smaller than the max output buffer size.

Change-Id: I55c6d4b277e5964a7978daceffbe4eb72014c06d
CRs-Fixed: 2222846
2018-04-23 12:44:15 -07:00
nshrivas
0c28056d53 Release 5.2.0.74R
Release 5.2.0.74R

Change-Id: I3890349d8735aa6ac5b984c051fb6f52f58f6bad
CRs-Fixed: 774533
2018-04-23 07:50:51 -07:00
Rakshith Suresh Patkar
44f6a8f1d9 qcacld-3.0: Debugfs Implementation for dp trace collection
Implement debugfs interface to dump DP trace buffer
to a debugfs file.

Change-Id: I51ac3acbfc404b87cacc8a247f85cc4ee9971b61
CRs-Fixed: 2180977
2018-04-23 07:50:50 -07:00
nshrivas
7d51ec65a6 Release 5.2.0.74Q
Release 5.2.0.74Q

Change-Id: Iaa10d27cfda1bde5562cae4eb051936a4d062c15
CRs-Fixed: 774533
2018-04-23 00:30:46 -07:00