Commit Graph

9066 Commits

Author SHA1 Message Date
Vignesh Viswanathan
067b9e668c qcacld-3.0: Post LFR2 Candidate found indication to Scan Queue
Post the LFR2 Candidate found indication to low priority scan queue
instead of SME queue to maintain order with beacon/probe frames
from Scan queue.

Change-Id: I5e8a6247a7d5200371d776bce3436104a5ba2df2
CRs-Fixed: 2226234
2018-04-23 00:30:42 -07:00
Vignesh Viswanathan
48b7ed9b32 qcacld-3.0: Allow Ext Scan and EPNO scan beacons on PE queue
Allow beacon frames received from Ext Scan or EPNO scan through
the filter into PE queue.

Change-Id: I491875f0e48bd2f317402b416598fe6e940e02a1
CRs-Fixed: 2226231
2018-04-23 00:30:38 -07:00
Vignesh Viswanathan
153ae93cf8 qcacld-3.0: Handle beacon frames from Scan module for SAP protection
Register a callback to scan module for beacon frames and handle
the beacon with the mac_ctx bcn/probe filter for SAP sessions.
This will allow beacon frames from the same channel as active SAP
sessions to be processed by the ap_beacon_process for SAP
protection mechanism implementation.

Change-Id: Idb0c1e22ba55fa683a7514d70ba5abe609263829
CRs-Fixed: 2226228
2018-04-23 00:30:35 -07:00
Vignesh Viswanathan
b3dbbc8cba qcacld-3.0: Add global MAC filters to filter beacon/probe frames in PE
Add filter structures in global mac context and apply the filter for
beacon/probe frames received in pe_handle_mgmt_frames before posting
the frames to PE queue.

Change-Id: Ic0e574705764c1bb247977a4c86e394b47941f5b
CRs-Fixed: 2226223
2018-04-23 00:30:31 -07:00
Vignesh Viswanathan
cad91325bf qcacld-3.0: Register SCAN queue to scheduler thread
Register the new low priority QDF_MODULE_ID_SCAN queue to the scheduler
thread to handler beacon/probe frames and scan events.

Change-Id: I80c9b6bbbce97942d188f8a7941a3937130d7c8e
CRs-Fixed: 2226222
2018-04-23 00:30:28 -07:00
Yu Wang
2741c7afbf qcacld-3.0: disable mailbox swap for FTM mode
It shouldn't swap mailbox in FTM mode,
or WMI commands will be stuck.

Change-Id: I5d3760100f3c8e1d2c3bfbe88fd5a84deb0bc1ff
CRs-Fixed: 2208876
2018-04-23 00:30:24 -07:00
nshrivas
aa714a1f94 Release 5.2.0.74P
Release 5.2.0.74P

Change-Id: I5b8e31dca8f2213b7dc42a79e58ea068e8425100
CRs-Fixed: 774533
2018-04-21 06:42:29 -07:00
Jeff Johnson
fc8c353cda qcacld-3.0: Relocate HDD Information Element macros
Currently wlan_hdd_wext.h defines some IE-related macros, but these
macros are independent of wireless extensions, so relocate them as
part of the plan to properly featurize wireless extensions.

Change-Id: I34b2b220087e946f662741fe549a980884b97842
CRs-Fixed: 2227954
2018-04-21 06:42:29 -07:00
Jeff Johnson
d9952752e0 qcacld-3.0: Relocate wlan_hdd_set_mon_chan()
Function wlan_hdd_set_mon_chan() 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: I187305c1f01c7a3cb72f55a0ee885c4f4f0277aa
CRs-Fixed: 2227097
2018-04-21 06:42:25 -07:00
nshrivas
d56751bbc1 Release 5.2.0.74O
Release 5.2.0.74O

Change-Id: I6c486ee94751bd4d6124cc68ef9e46e51742ed9b
CRs-Fixed: 774533
2018-04-20 23:30:10 -07:00
nshrivas
db49b4ad99 Release 5.2.0.74N
Release 5.2.0.74N

Change-Id: I96d23e75dcca0bdfa1df2fd7c5b5fa5dd9e65950
CRs-Fixed: 774533
2018-04-20 17:15:45 -07:00
nshrivas
51225472c5 Release 5.2.0.74M
Release 5.2.0.74M

Change-Id: I318bebe197f887dd38ac07fdbdbfeafd929ad3a4
CRs-Fixed: 774533
2018-04-20 12:08:52 -07:00
nshrivas
c55caf2ee9 Release 5.2.0.74L
Release 5.2.0.74L

Change-Id: I5fe70353b8b96ae6252f538dc616a2ab95d66924
CRs-Fixed: 774533
2018-04-20 02:33:28 -07:00
Jiachao Wu
27e67a30d5 qcacld-3.0: Always send CSA IE when 80211h enable
If CHAN_HOP_ALL_BANDS_ENABLE enable, CSA will miss in 80211h case.
CSA should be sent no matter CHAN_HOP_ALL_BANDS_ENABLE enable or not.

Change-Id: I62312fd5717910d23fdd8ce77c29ad2d9ef11567
CRs-Fixed: 2218108
2018-04-20 02:33:27 -07:00
Kiran Kumar Lokere
27026ae2a4 qcacld-3.0: Add support to process MU EDCA param set
Add support to process MU EDCA param set in assoc response
frames and send the params to FW.

Change-Id: Ia492d1212b3c357647a89e4f98d3cfdc7ff7bbac
CRs-Fixed: 2220227
2018-04-20 02:33:24 -07:00
nshrivas
cbbe401af3 Release 5.2.0.74K
Release 5.2.0.74K

Change-Id: I299bbb96363dd1ed9ec92975c8dc6224bb2aa366
CRs-Fixed: 774533
2018-04-19 22:06:35 -07:00
Dustin Brown
c8e96f1746 qcacld-3.0: Use total_len in drv_cmd_get_ibss_peer_info_all
Avoid userspace overwrite in drv_cmd_get_ibss_peer_info_all 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: I77f25c50bbe9d0b966a5c319297e3e2dca4b6280
CRs-Fixed: 2222879
2018-04-19 22:06:35 -07:00
Naveen Rawat
e02f8f541c qcacld-3.0: Move hdd_request_manager to qcacmn osif layer
Move hdd_request_manager to qcacmn osif layer, which will be
used by CP_STATs component.

Change-Id: Iab64ebb837d7c2c7411905b84306fbb9990a4bac
CRs-Fixed: 2220069
2018-04-19 22:06:31 -07:00
Naveen Rawat
2b43089fc7 qcacld-3.0: Add ini param to control RTT mac randomization
Add change to allow randomizing mac address used in STA mode RTT
ranging using ini param control.

Change-Id: Ief3814ef758476d2617d8176daade2128c2b250a
CRs-Fixed: 2205953
2018-04-19 22:06:28 -07:00
Abhinav Kumar
a95af7cbac qcacld-3.0: Add new ini to set min delay btw scan and reason bit-mask
Currently there is no provision to decide delay between two roam
scans in firmware. With these new ini's, driver wants to expose
control to decide delay between roam scans:

Add ini "min_delay_btw_scans" to set minimum duration allowed between
two consecutive roam scans. Fw should not allow roam scan if duration
between two consecutive roam scan is less than min_delay_btw_scan.

Add ini "roam_trigger_reason_bitmask" to set default value of
bit-mask containing roam_trigger_reasons for which
min_delay_btw_scans constraints should be apply.

Change-Id: I2af9d5dc8e6919eeb90251d3d744e3f07705e776
CRs-Fixed: 2221779
2018-04-19 22:06:23 -07:00
Naveen Rawat
9832247b07 qcacld-3.0: Fix check for firmware's chainmask capability
Fix condition checked before programming user's requested chainmask to
firwmare. Get current firmware advertised phy cap for non-dbs phymode
and check if it supports all chains for tx/rx 2g and 5g.

Change-Id: I3fcef315f478403955ce400b3ba6d138a8006a01
CRs-Fixed: 2202544
2018-04-19 22:06:17 -07:00
nshrivas
49c60e3f12 Release 5.2.0.74J
Release 5.2.0.74J

Change-Id: I0f6cc215cd719bc52453cc75c6301ec93fa8b9b3
CRs-Fixed: 774533
2018-04-19 19:26:02 -07:00
Sandeep Puligilla
06ae890ba3 qcacld-3.0: Probe request sent with corrupted IE
DUT sent directed probe requests as malformed
packets during heart beat failure scenario.

Join request structure holds the additional scan IE buffer
which contains IE's sent as part of the join request.
During the join request processing this buffer is updated
by deleting the extended capabilities IE but the buffer length
variable is not updated accordingly which caused malformed
probe request.

After deleting the extended capabilities IE, additional
scan ie buffer length also updated accordingly.

Change-Id: I1129123e76dffe03ac409109dbee02caabf60efa
CRs-Fixed: 2224287
2018-04-19 19:26:01 -07:00
Manjunathappa Prakash
fa2754cce5 qcacld-3.0: Dont access msdu after it is transmitted
Tx context is holding on to reference to msdu, meanwhile Tx completion
freed the msdu, remove redundent qdf_nbuf_reset_num_frags(msdu)

Change-Id: I4c51f6e61c19147d2d4dafbd19bdfc3029a872ab
CRs-Fixed: 2222024
2018-04-19 19:25:57 -07:00
Dustin Brown
933cd2a72f qcacld-3.0: Avoid info leak in hdd_driver_rxfilter_comand_handler
In hdd_driver_rxfilter_comand_handler(), when kstrtou8() fails to parse
the input string, the value of an uninitialized @type local is logged.
To avoid leaking stack memory, avoid logging the value of @type if the
parsing fails.

Change-Id: I46b21cdb138927b3edc406014450447c58a0d977
CRs-Fixed: 2221085
2018-04-19 19:25:53 -07:00
Will Huang
9508263669 qcacld-3.0: Unregister CSR scan request handler when csr_stop
Register CSR scan requester when csr_start(), but didn't unregister it
when csr_stop(). It might run out scan requester buffer.

Change-Id: I95472027c927ae0c0bc1869338cffad6bbacf0ff
CRs-Fixed: 2222492
2018-04-19 19:25:47 -07:00
nshrivas
e4073c1308 Release 5.2.0.74I
Release 5.2.0.74I

Change-Id: I4ea02eba2c3261591f364a08aad3e97ac6b49e49
CRs-Fixed: 774533
2018-04-19 14:15:09 -07:00
Arunk Khandavalli
830c969fc9 qcacld-3.0: Dont process driver unload during system reboot
During the system reboot when the firmware goes offline before the
driver unload there is no way to detect whether the it is because
of the reboot or a assert in the firmware. So, the driver waits
for the firmware to recover before continuing with unloading
the device.

Since this is a reboot case the firmware will not respawn the
execution and host driver is struck.

To mitigate the issue register a reboot notifier with the kernel
and if reboot is triggered proceed with a fake unload.

Change-Id: I33d14c393930e9ee737d38ffdb26e921fb057f29
CRs-Fixed: 2211776
2018-04-19 14:15:08 -07:00
Sandeep Puligilla
305d509e75 qcacld-3.0: Enable wiphy RxLDPC for 5G band
RxLDPC is disabled in wiphy 5g capability due
to which hostapd is failed to start in 5G channel
with RXLDPC enabled.

Read the RxLDPC capability value of 5G from
single MAC mode and update wiphy 5g band capability
structure to enable the RxLDPC.

Change-Id: Iec2b3674207d5f9ec13a40e110342d6b67ca391c
CRs-Fixed: 2215101
2018-04-19 14:15:04 -07:00
Jeff Johnson
a06efaab0e qcacld-3.0: Make hdd_display_stats_help() static
Currently hdd_display_stats_help() is a public function exported by
wlan_hdd_wext.h. But this function is only used internally within
wlan_hdd_wext.c, so remove the public prototype and instead make the
function static.

Change-Id: Iaed10720f0f325794481bbb7ad9f743deb6b7b15
CRs-Fixed: 2227013
2018-04-19 14:15:01 -07:00
Ashish Kumar Dhanotiya
214e142e9e qcacld-3.0: Change the default value of ini "gTxSchDelay"
Change the default value of ini "gTxSchDelay" from 2 to 0.

Change-Id: Ic4c53b5e3c38cda88d01684b9594a8bfb5be2aa1
CRs-Fixed: 2227539
2018-04-19 14:14:54 -07:00
nshrivas
94c7ac7e10 Release 5.2.0.74H
Release 5.2.0.74H

Change-Id: I851aaf71b11548449bbb260855c90aff10856233
CRs-Fixed: 774533
2018-04-18 22:03:29 -07:00
jiad
80055eb33c qcacld-3.0: Add frag_header to support pre-wdi2.0 platform
wdi2.0 feature adds extra 2 bytes to frag_header and thus hdr_len
to IPA HW also adds 2 bytes. This change breaks pre-wdi2.0 platform
with WiFi FW discarding all TX traffic since packet payload is
with an extra 2-byte offset.

Fix is to add frag_header structure with pre-wdi2.0 pattern.

Change-Id: I467a05bab4111a305ae23250c61cecc050821611
CRs-Fixed: 2047714
2018-04-18 22:03:28 -07:00
nshrivas
00e328c7e9 Release 5.2.0.74G
Release 5.2.0.74G

Change-Id: I9ed5f072b59d5ec0a65af1178e5c5bac4114fc50
CRs-Fixed: 774533
2018-04-18 18:39:02 -07:00
Abhinav Kumar
271f063980 qcacld-3.0: Add new ini to enable/disable FT open feature
Add new ini item "enable_ftopen" to enable/disable FT open
feature. There is no ini currently to disable only FT open.

Change-Id: I18280d9de77857b15698eb233ba4ec71089beb06
CRs-Fixed: 2214766
2018-04-18 18:38:54 -07:00
Abhinav Kumar
bd9a47e43d qcacld-3.0: Send appropriate value of Tx power in TPC report
TPC IE, transmit power value reports zero in beacon when operating
as P2P-GO or SAP.

Fix is to populate appropriate value of tx power in TPC report.

Change-Id: Iae52d7bb6a94d167a6bc6f981d62be6f7c12e0c1
CRs-Fixed: 2224187
2018-04-18 18:38:50 -07:00
Pragaspathi Thilagaraj
d9888ce77f qcacld-3.0: Fix OOB write in wma_unified_debug_print_event_handler
The routine wma_unified_debug_print_event_handler logs the data from debug
print event handler. The param event data from firmware is copied to a
destination buffer .If the maximum size of the data exceeds or equals
BIG_ENDIAN_MAX_DEBUG_BUF for big endian hosts then possible OOB write will
occur in wma_unified_debug_print_event_handler. For other hosts, OOB read
could occur if datalen exceeds maximum firmware message size
WMI_SVC_MAX_SIZE.

Add check to validate datalen doesnot exceed the maximum firmware msg size
WMI_SVC_MAX_SIZE. Return failure if it exceeds.
Add check to ensure datalen doesnot exceed or equal the maximum buffer
length value for big endian hosts BIG_ENDIAN_MAX_DEBUG_BUF.
Add null termination at the end of the data recieved from the firmware.

Change-Id: Ibb662cb8e17ef8be8b7591308c422a78b71e331a
CRs-Fixed: 2222533
2018-04-18 18:38:48 -07:00
Nirav Shah
fb79af826c qcacld-3.0: Do not compile pld_pcie file for non-pci case
Do not compile pld_pcie file for non-pci
attach.

Change-Id: Ic32074960137e055f991de134a9720e2b81a642c
CRs-Fixed: 2213301
2018-04-18 18:38:46 -07:00
Nirav Shah
e6c8e64600 qcacld-3.0: Fix to set start/stop threshold from ini
Fix to set start/stop threshold value from ini
for flow control for LL.

Change-Id: Id77e47ea959dfce02cea8b4af648b07b12bb5cdc
CRs-Fixed: 2213290
2018-04-18 18:38:40 -07:00
Min Liu
46ef0bf334 qcacld-3.0: Do not wait for peer deletion for SSR
When SSR is in progress, WMI commands for peer and vdev deletion
will not be sent to FW. Do not wait for peer deletion for it will
always lead to timeout since peer delete command will not be sent.
And the check is not needed since vdev delete command will not be
sent, either.

Change-Id: Ib6f921a7c7ff09bf30ed19b443a30542db2b51a3
CRs-Fixed: 2217366
2018-04-18 18:38:33 -07:00
Jeff Johnson
3d46351ccd qcacld-3.0: Remove obsolete SoftAP VSTA feature code
The SoftAP VSTA feature was introduced to overcome a limitation in a
prior version of WLAN hardware. Since the WLAN hardware supported by
this driver does not have this limitation, remove the feature code.

Change-Id: I1f2fe31b294fb7b2da1fa8619b3380412c5d872e
CRs-Fixed: 2224817
2018-04-18 18:38:24 -07:00
Yun Park
a9d0c11298 qcacld-3.0: Send AP_DISCONNECT event after all clients disconnected
There could be an abnormal situation occurs in IPA pipes suspend
process if HDD_IPA_AP_DISCONNECT event sent while WDI pipes are still
active.
Fix to send HDD_IPA_AP_DISCONNECT after all clients disconnected.

Change-Id: I7ad757834ec22384d07236363d135009a9710bee
CRs-Fixed: 2192239
2018-04-18 18:38:21 -07:00
Jeff Johnson
df5d779c08 qcacld-3.0: Better featurize the SSR injection debug code
The driver supports a "SSR injection" feature that is used during
testing to validate certain recovery features. Currently this feature
is protected by a generic WLAN_DEBUG feature flag, and in addition
there are two separate debug ioctl handlers which have duplicate
code. In order to better support a finer level of configurability
introduce a new configuration flag and consolidate to a single
implementation of the feature under that flag.

Change-Id: I73e8dd4580ca53d129ae0181ffc46d011699f3dc
CRs-Fixed: 2224815
2018-04-18 18:38:11 -07:00
nshrivas
ff2d5772db Release 5.2.0.74F
Release 5.2.0.74F

Change-Id: Ic244e2d42559d01bc953895a4ae804494ac1e034
CRs-Fixed: 774533
2018-04-17 13:17:41 -07:00
Manjunathappa Prakash
ae7494872c qcacld-3.0: Create flow control pools on vdev start
As many as 5 vdevs can be created, which is defined by MAX_SME_SESSIONS.
But flow control pools are only valid for active TxRx capable vdevs.
Which is 3 active vdev starts. So attach flow pool creation to vdev_start
instead of vdev_attach.

Change-Id: I137676ba618aa3a6684c7d17ef7d9263c4df6efe
CRs-Fixed: 2179220
2018-04-17 13:17:40 -07:00
nshrivas
490facc39a Release 5.2.0.74E
Release 5.2.0.74E

Change-Id: I67e2bb48b079d29b74eecf5277c0ea2d381814ae
CRs-Fixed: 774533
2018-04-17 11:07:50 -07:00
Kiran Kumar Lokere
bfc1b40f83 Revert "qcacld-3.0: Set BA buffer size default value to 63"
This reverts Change-Id: I48ffbcfb81d3fdf365907d2bf8eafab6fd15c701.

Change-Id: I45b2b10cb98c70264291c183d55a12d35912c966
CRs-Fixed: 2225515
2018-04-17 11:07:50 -07:00
nshrivas
937a5e1d25 Release 5.2.0.74D
Release 5.2.0.74D

Change-Id: I3dfbdb3d47d74854b1c031b5aff3e9803aed0ead
CRs-Fixed: 774533
2018-04-16 22:59:57 -07:00
Will Huang
36049720ff qcacld-3.0: Move qdf_cancel_delayed_work to __hdd_module_exit
If hdd_wlan_stop_modules is called by hdd_iface_change_callback which
is invoke by a delayed worker, and a race condition happen that rmmod
call in during hdd_wlan_stop_modules, although cnss driver will
serialize wlan remove with the wlan shutdown invoked by delayed worker,
CNSS_DRIVER_UNLOADING still got set and wlan shutdown will invoke remove
wlan, which will try to sync cancel delayed worker and wait for each
other to deadlock.

If move qdf_cancel_delayed_work() from hdd_wlan_exit() to
__hdd_module_exit(), it will flush/wait in a different context of cnss
driver worker, so avoid deadlock hit.

Change-Id: I6bc58e8ae70291d5490560310e90abc52421b59f
CRs-Fixed: 2222381
2018-04-16 22:59:56 -07:00
nshrivas
5c0788318d Release 5.2.0.74C
Release 5.2.0.74C

Change-Id: I840ada04fc1f9a85fb9c5e346f114fbff11a41b6
CRs-Fixed: 774533
2018-04-16 20:26:19 -07:00