Commit Graph

6892 Commits

Author SHA1 Message Date
Jeff Johnson
2b3c77d539 qcacld-3.0: Remove obsolete struct _WLAN_BKID_LIST
The struct _WLAN_BKID_LIST is unused and obsolete, so remove it.

Change-Id: Ia13570543625824e6f93cefd30670b37118c82db
CRs-Fixed: 2115506
2017-09-28 03:47:09 -07:00
Jeff Johnson
414fd67eef qcacld-3.0: Remove obsolete SAP support for SIOCSIWMLME
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
SAP implementation of SIOCSIWMLME now performs no useful actions, so
remove it.

Change-Id: I5da7e63d2efbc0d97dbdaec306bad2ae7a9cb0ef
CRs-Fixed: 2115350
2017-09-28 03:47:06 -07:00
Jeff Johnson
8872e1e310 qcacld-3.0: Remove obsolete SAP support for SIOCSIWENCODEEXT
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
SAP implementation of SIOCSIWENCODEEXT now performs no useful actions,
so remove it.

Change-Id: I10cb2a339a2a5f8be5114a6987a82f4fbad8b497
CRs-Fixed: 2115349
2017-09-28 03:47:04 -07:00
Jeff Johnson
f57993cb19 qcacld-3.0: Remove obsolete eWNI_SME_UPDATE_APWPSIE_REQ
Change "qcacld-3.0: Remove obsolete csr_roam_update_apwpsie()"
removed the only sender of message eWNI_SME_UPDATE_APWPSIE_REQ. Since
this message is no longer used, remove it along with the now obsolete
handler code.

Change-Id: I191dc17898bcbf84ad4b6d03c515a8124a0f4d24
CRs-Fixed: 2115348
2017-09-28 03:47:02 -07:00
Jeff Johnson
e63a10733b qcacld-3.0: Remove obsolete csr_roam_update_apwpsie()
Change "qcacld-3.0: Remove obsolete sme_roam_update_apwpsie()"
removed the only caller of csr_roam_update_apwpsie(). Since this
function is unused and obsolete, remove it.

Change-Id: I5a32572d79bccd2c9267e4ffdb0ac7ad9a68d26d
CRs-Fixed: 2115347
2017-09-28 03:47:00 -07:00
Jeff Johnson
9f197dee17 qcacld-3.0: Remove obsolete sme_roam_update_apwpsie()
Change "qcacld-3.0: Remove wlansap_*_wps_ie()" removed the last
caller of sme_roam_update_apwpsie(). Since this function is unused
and obsolete, remove it.

Change-Id: I71ec6d5dd22d427507658cf26582e69bd0751d7f
CRs-Fixed: 2115346
2017-09-28 03:46:59 -07:00
Jeff Johnson
526c7a7054 qcacld-3.0: Remove obsolete eWNI_SME_TKIP_CNTR_MEAS_REQ
Change "qcacld-3.0: Remove csr_roam_issue_tkip_counter_measures()"
removed the only sender of message eWNI_SME_TKIP_CNTR_MEAS_REQ. Since
this message is no longer used, remove it along with the now obsolete
handler code.

Change-Id: I7ff4dfb455daa464379b8d6a65e0a4cd3eb75570
CRs-Fixed: 2115345
2017-09-28 03:46:56 -07:00
Jeff Johnson
88f69f3991 qcacld-3.0: Remove csr_roam_issue_tkip_counter_measures()
Change "qcacld-3.0: Remove obsolete sme_roam_tkip_counter_measures()"
removed the only caller of csr_roam_issue_tkip_counter_measures().
Since this function is unused and obsolete, remove it and the
supporting function csr_send_mb_tkip_counter_measures_req_msg().

Change-Id: Id681afc7448ea9fc2ba5ef89ed88672211106e84
CRs-Fixed: 2115344
2017-09-28 03:46:54 -07:00
Jeff Johnson
e78d1c471a qcacld-3.0: Remove obsolete sme_roam_tkip_counter_measures()
Change "qcacld-3.0: Remove obsolete wlansap_set_counter_measure()"
removed the last caller of sme_roam_tkip_counter_measures. Since this
function is unused and obsolete, remove it.

Change-Id: Id7d48fc6946a15ddf1157417d00833a7976b5793
CRs-Fixed: 2115343
2017-09-28 03:46:52 -07:00
Jeff Johnson
8d5d7cd3b1 qcacld-3.0: Remove obsolete wlansap_set_counter_measure()
Change "qcacld-3.0: Remove hdd_softap_tkip_mic_fail_counter_measure()"
removed the only caller of function wlansap_set_counter_measure. Since
this function is now unused and obsolete, remove it.

Change-Id: I6fc7ab24351dca41b22aabf40a82509448c795b0
CRs-Fixed: 2115342
2017-09-28 03:46:49 -07:00
Jeff Johnson
326a04f9dd qcacld-3.0: Remove hdd_softap_tkip_mic_fail_counter_measure()
Change "qcacld-3.0: Remove obsolete SAP support for SIOCSIWAUTH"
removed the only caller of hdd_softap_tkip_mic_fail_counter_measure().
Since this function is now unused and obsolete, remove it.

Change-Id: If69881bbe922220341faad78bc992aa57d7e2f7c
CRs-Fixed: 2115340
2017-09-28 03:46:47 -07:00
Jeff Johnson
c8e1cb86b6 qcacld-3.0: Remove obsolete SAP support for SIOCSIWAUTH
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
SAP implementation of SIOCSIWAUTH now performs no useful actions, so
remove it.

Change-Id: If9b9fec53b8b594d50528f0fa8deaf611b39930e
CRs-Fixed: 2115339
2017-09-28 03:46:45 -07:00
Jeff Johnson
9cf61f780e qcacld-3.0: Remove obsolete eWNI_SME_SET_APWPARSNIEs_REQ
Change "qcacld-3.0: Remove obsolete csr_roam_update_wparsni_es()"
removed the only sender of message eWNI_SME_SET_APWPARSNIEs_REQ. Since
this message is no longer used, remove it along with the now obsolete
handler code.

Change-Id: I67819ea52b9600ed6afd986202090b99baf0f666
CRs-Fixed: 2114959
2017-09-28 03:46:43 -07:00
Jeff Johnson
573a86ac61 qcacld-3.0: Remove obsolete csr_roam_update_wparsni_es()
Change "qcacld-3.0: Remove obsolete sme_roam_update_apwparsni_es()"
removed the only caller of csr_roam_update_wparsni_es(). Since this
function is unused and obsolete, remove it.

Change-Id: I4e89efe38776eb74c702485020236cfaee50641f
CRs-Fixed: 2114958
2017-09-28 03:46:41 -07:00
Jeff Johnson
587285add5 qcacld-3.0: Remove obsolete sme_roam_update_apwparsni_es()
Change "qcacld-3.0: Remove obsolete wlansap_set_wparsn_ies()" removed
the last caller of sme_roam_update_apwparsni_es(). Since this function
is unused and obsolete, remove it.

Change-Id: I36d03fc0a8ad24c0b0a2699c008baf83f474a217
CRs-Fixed: 2114957
2017-09-28 03:46:39 -07:00
Jeff Johnson
67cbe1d49f qcacld-3.0: Remove obsolete wlansap_set_wparsn_ies()
Change "qcacld-3.0: Remove obsolete SAP support for SIOCSIWGENIE"
removed the only caller of function wlansap_set_wparsn_ies(). Since
this function is now unused and obsolete, remove it. As a result the
APWPARSNIEs field in the SAP context is also no longer used, so remove
it as well.

Change-Id: I02a1f0597688367650796b1334b6144a6afff6ee
CRs-Fixed: 2114956
2017-09-28 03:46:37 -07:00
Jeff Johnson
c4d9f17946 qcacld-3.0: Remove obsolete SAP support for SIOCSIWGENIE
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
SAP implementation of SIOCSIWGENIE now performs no useful actions, so
remove it.

Change-Id: Ia17f94ce648c41d7c25cf98ff1fbfbe5a5fc4c51
CRs-Fixed: 2114955
2017-09-28 03:46:35 -07:00
snandini
e6887972a0 Release 5.2.0.45R
Release 5.2.0.45R

Change-Id: I97d0b7aabd7e79c2382c69183d7ad1e37b1f9c9b
CRs-Fixed: 774533
2017-09-28 01:57:37 -07:00
Rakesh Pillai
3e534db38b qcacld-3.0: Send ARP/NS/NA packets from HI PRIO queue
ARP/NS/NA packets will not get chance to be transmitted if
netif queues are paused due to low tx descriptor availability.
Send ARP/NS/NA packets from HI PRIO queue so that it can be transmitted
in noisy environment.

Change-Id: Ibb414463d1471c19d5db99e12517c77b02564318
CRs-Fixed: 2081348
2017-09-28 01:57:36 -07:00
snandini
a9186c009a Release 5.2.0.45Q
Release 5.2.0.45Q

Change-Id: Ic329ce3d3aed8903473edf60e51324a435d7909b
CRs-Fixed: 774533
2017-09-27 21:40:10 -07:00
Poddar, Siddarth
dd67f2b40d qcacld-3.0: Clear the tx_desc ref count in free desc common function
Clear the tx desc ref_cnt in ol_tx_desc_free_common as
ol_tx_desc_free independently get called from some places
during failure cases.

Change-Id: I705061558a0419785091e0e1d0605e317e479188
CRs-Fixed: 2071116
2017-09-27 21:40:09 -07:00
snandini
85868c8753 Release 5.2.0.45P
Release 5.2.0.45P

Change-Id: I67458caf3acce99243980899867414a18e51f578
CRs-Fixed: 774533
2017-09-27 20:58:00 -07:00
Archana Ramachandran
7498d374bc qcacld-3.0: Allow beacon/probe resp update for SAP during connection
Host driver is ignoring beacon/probe response update for SAP before
4-way handshakes completed. Due to this beacon/probe response is not
updated with the latest updates from the userspace. This can lead to
re-connection failure/delay after disconnect.

Change-Id: I3a735a2c867c4cfac9662551221fbf22d5afb29d
CRs-Fixed: 2027658
2017-09-27 20:58:00 -07:00
Deepak Dhamdhere
6a02148e2c qcacld-3.0: Use correct smeSessionid in rrm beacon report xmit
lim_send_radio_measure_report_action_frame() uses 0 as the smeSessionId
and that results in wrong value of vdev_id when firmware vdev is 1,
resulting in firmware assert. Use the value from sme session entry.

CRs-Fixed: 2036670
Change-Id: I797a719abc29d4086be131f895a90e0752a2d27f
2017-09-27 20:57:58 -07:00
Naveen Rawat
296a51846f qcacld-3.0: Add support to send rate information for mgmt frames
Add support to send rate information for mgmt frames.

Currently default rates are used by target for the mgmt frames before
association. If the AP does not support the default rates (1 Mbps for
2.4G and 6Mbps for 5G), STA would still send AUTH, ASSOC frames with
the default rates. Add support to send the minimum rate supported by
the AP as part of the MGMT Tx WMI command.

Change-Id: I38d832818bbbd5fe3dec5660bd01dd08798bf0be
CRs-Fixed: 2085006
2017-09-27 20:57:56 -07:00
Mukul Sharma
6398b253fb qcacld-3.0: Add support for changing LISTEN interval dynamically
Current method for calculating LISTEN INTERVAL are static
configuration a.ka. ini based. Now OEM / USER want to take
control of setting LISTEN INTERVAL as per their applications
need. Once if USER configure the LISTEN INTERVAL value using
vendor command then host should avoid changing the LI value
during each suspend/resume. User LI value will be override
configuration. Once USER will Disable the LI using vendor
command then host can fallback to current default method.

Change-Id: Ia9b412b073c059df0cdff7bcda8198f7581e796d
CRs-Fixed: 2040298
2017-09-27 20:57:54 -07:00
snandini
dfbcca7068 Release 5.2.0.45O
Release 5.2.0.45O

Change-Id: Idb54916c1e9c2e9b13a652fc7a7540452de4fb47
CRs-Fixed: 774533
2017-09-27 20:09:03 -07:00
tfyu
bdf453e429 qcacld-3.0: Enable the TX orphan by ini key gEnableTxOrphan
Enable the TX orphan by ini key gEnableTxOrphan, which is protected by
TX flow control.

Change-Id: Ib8e6d88ea0c7fda62f2d13ae3c592866ddc82521
CRs-Fixed: 2115621
2017-09-27 20:09:02 -07:00
Ashish Kumar Dhanotiya
bfee5898b7 qcacld-3.0: Update driver according to latest reg domain info
Update driver for the latest reg domain info according to
Regdomain_23 and Regdomain_24 excel sheets.

Change-Id: I6b259be20de650886a16c32b69f8ed82b96dbcd8
CRs-Fixed: 2112485
2017-09-27 20:09:01 -07:00
Mohit Khanna
54f3a38c61 qcacld-3.0: fix qdf_nbuf_unmap_segment crash
Make the following changes to fix the issue:
- Wrap TSO seg unmap code inside a spinlock
- Add TSO descriptor DUP detection logic before unmapping TSO segs
- De-initialize TSO seg freepool after in-use Tx descriptors have been
  de-inited

Change-Id: I63b100879b302e4919c2952143509e76c14b36ec
CRs-Fixed: 2018317
2017-09-27 20:08:59 -07:00
Kiran Kumar Lokere
cc44868605 qcacld-3.0: Fix issue in processing VHT caps in vendor IE
VHT caps in vendor IE are not parsed if the same vendor IE OUI is
present twice with different type values. Check the type in vendor
IE to detect the VHT caps in the vendor IE.

Change-Id: I4d3fd7d6488719719718b84a2dbea7cda0c8e869
CRs-Fixed: 2080186
2017-09-27 20:08:56 -07:00
snandini
0bac6ee34c Release 5.2.0.45N
Release 5.2.0.45N

Change-Id: I7c13f2f57c78e160f91c07abff8d22f414ea1131
CRs-Fixed: 774533
2017-09-27 19:24:03 -07:00
Abhishek Singh
0d74f9e664 qcacld-3.0: Fix double free del_sta_session_req
iface->del_staself_req is used to check if del sta self was defered
and if it is set vdev detatch is called. iface->del_staself_req is
also set in case  del sta self was not defered and thus del sta self
resp may get called twice, assuming it was differed and this result
in double free of del_sta_session_req.

To fix this added a bool to check if the del sta self was defered.

Change-Id: If4c2bc2a5bb6b8761f4130119a96602055d45b77
CRs-Fixed: 2116888
2017-09-27 19:24:02 -07:00
snandini
25bc04bea0 Release 5.2.0.45M
Release 5.2.0.45M

Change-Id: Ie7fa137dc3f91f21ae92bcc43e3ba0f65b38c528
CRs-Fixed: 774533
2017-09-27 17:30:43 -07:00
Houston Hoffman
1942caece7 qcacld-3.0: Fix PRE_CAC_SSID check bounds check
If the ssid_len was greater than the PRE_CAC_SSID string,
memcmp would do an out of bounds memory read. Fix by
adding a length check.

Change-Id: I0d72cfdb2faea74db06640df7418f2a7aecd9afb
CRs-Fixed: 2098988
2017-09-27 17:30:42 -07:00
Houston Hoffman
b10ec496b6 qcacld-3.0: Use qdf_dbg instead of qdf_print for non-error logs
Stats printing with excessive loops should not go to the console.
Avoids watch-dog bites.

Change-Id: I2ff67827d8bb975bc4ddbb4d70c88283e8ea231e
CRs-Fixed: 2088027
2017-09-27 17:30:39 -07:00
tfyu
9fcabd7c9a qcacld-3.0: Fix memory leak for txrx_fw_stats cmd
qcacld-2.0 to qcacld-3.0 propagation

The txrx_fw_stats cmd will allocate a req object before sending the cmd
to the firmware, this memory is only freed when get response from firmware.
The memory leak will appear if the firmware doesn't response in time before
the driver unloading.

This fix will add a pending queue to trace this req object in the pdev.
when pdev is detaching, it will clean up this queue to avoid memory leak.

Change-Id: I35f6216d35befbab978bba161252b305488bd34c
CRs-Fixed: 2116408
2017-09-27 17:30:36 -07:00
Will Huang
fe649175aa qcacld-3.0: Differentiate pattern id for legacy firmware
The Wow pattern id should be identified unique for different vdevs of
legacy firmware, and latest firmware accept same Wow pattern id on
different vdevs.

This change is to differentiate this behavior using
WMI_SERVICE_UNIFIED_WOW_CAPABILITY flag, and supply a set of APIs to
manipulate pattern id.

Change-Id: I5fe7623a309a0c3baa14fb7312107c057e994462
CRs-Fixed: 2103017
2017-09-27 17:30:33 -07:00
snandini
d98162c32c Release 5.2.0.45L
Release 5.2.0.45L

Change-Id: I3b634f5c466587a7609136bf1eadd80cc27f00d3
CRs-Fixed: 774533
2017-09-27 16:23:41 -07:00
Rajeev Kumar
887d7d407a qcacld-3.0: Fix excessive logging from wlan_pmo_tgt_gtk.c
Info level logs are logged on console, hence change PMO logs in
wlan_pmo_tgt_gtk.c to debug log level to avoid excessive console
logging.

Change-Id: I8f19e8651927a7c3cae9ee1e1118f983c063b3ed
CRs-Fixed: 2116340
2017-09-27 16:23:40 -07:00
Rajeev Kumar
08f67ca4e4 qcacld-3.0: Fix excessive logging from wlan_pmo_ns.c
Info level logs are logged on console, hence change PMO logs in
wlan_pmo_ns.c to debug log level to avoid excessive console logging.

Change-Id: I60620f6a3ce4fe708f026a554a5295c1f708f485
CRs-Fixed: 2116335
2017-09-27 16:23:38 -07:00
Rajeev Kumar
6f5fc88fd0 qcacld-3.0: Fix excessive logging from wlan_pmo_arp.c
Info level logs are logged on console, hence change PMO logs in
wlan_pmo_arp.c to debug log level to avoid excessive console logging.

Change-Id: I4eef5203f612b3ddaace30d4da43c13103dd60c7
CRs-Fixed: 2116328
2017-09-27 16:23:35 -07:00
bings
d60c0b4795 qcacld-3.0: Fix channel selection failure after radar is detected
sap_dfs_is_channel_in_nol_list will return true even for the channels
which are not in the nol list.

When sap_dfs_is_channel_in_nol_list gets bonded channels, it gets the
bonded channels of current channel of the sap rather than the input
channels, so after radar is detected, the current channel of the sap
is in nol list, and sap_dfs_is_channel_in_nol_list returns true for
all input channels.

sap_dfs_is_channel_in_nol_list should get the bonded channels of input
channels.

CRs-fixed: 2105496
Change-Id: I7c5fc06c66c004aa5c1a208376d1ab4b88956a6f
2017-09-27 16:23:32 -07:00
Rajeev Kumar
5651117a90 qcacld-3.0: Fix excessive logging from wlan_pmo_suspend_resume.h
Info level logs are logged on console, hence change PMO logs in
wlan_pmo_suspend_resume.h to debug log level to avoid excessive
console logging.

Change-Id: I77edb26ce3eb61573bba830787fe0ffb32eb6281
CRs-Fixed: 2116321
2017-09-27 16:23:30 -07:00
Rajeev Kumar
a0b12dff9b qcacld-3.0: Fix excessive logging from wlan_pmo_main.c
Info level logs are logged on console, hence change PMO
logs in wlan_pmo_main.c to debug log level to avoid excessive
console logging.

Change-Id: I1f3c00537ce850079a06aaf479bdb917e7ea55e2
CRs-Fixed: 2116314
2017-09-27 16:23:28 -07:00
snandini
206b8a8a64 Release 5.2.0.45K
Release 5.2.0.45K

Change-Id: I29aaa90fe5e3f704db4856bb8b6d63046aca921f
CRs-Fixed: 774533
2017-09-26 22:20:06 -07:00
Yu Wang
46082dc0a6 qcacld-3.0: inject fw crash in crash-shutdown
When kernel panic happen, if WiFi FW is still active,
it may cause NOC errors/memory corruption, to avoid
this, inject a fw crash first.

Propagated from qcacld-2.0

Change-Id: I97a696a02dfd73aaca212ef1bca9f3597df1e382
CRs-Fixed: 2052332
2017-09-26 22:20:06 -07:00
Nachiket Kukade
be8850b4c6 qcacld-3.0: Set up watchdog timers for pld driver ops
Requirement to detect if a PLD OP has stuck for a long time.
Define a timer for 30 seconds and let it run during pld ops
probe, reinit, remove and shutdown. Upon expiry print important
debug information then either trigger recovery or BUG ON.

Change-Id: I6c132cb71917cec7dead9c6c91ce6778e20bffe7
CRs-Fixed: 2090785
2017-09-26 22:20:04 -07:00
Arunk Khandavalli
16d84258e0 qcacld-3.0: Synchronize load/unload with IFF_UP from upper layer
In certain restart sequence of the modem, wlan driver is forcefully
removed and re-probed during the firmware ready. Supplicant receives
the RTM_DELLINK/RTM_NEWLINK events as part of unregistration of netdev
from remove and registration of the netdev again as part of re-probe.

As soon as the RTM_NEWLINK indication is received by the supplicant
it tries to bring up the interface, the request for bringing up
the interface is rejected by the driver since it is still in the
re-probing phase resulting in the scan failure and other failures.

To mitigate issue synchronize the interface up with the loading/unloading
of the driver.

Change-Id: Ie467e729a4736a0ee580c4df8d75099cf070d7bf
CRs-Fixed: 2058390
2017-09-26 22:20:01 -07:00
Yeshwanth Sriram Guntuka
5ee28cdb3c qcacld-3.0: Fix kernel checkpatch warnings in nan_api.c
Fix kernel checkpatch warnings in nan_api.c

Change-Id: I26b6d01297cda674444f84a1994f5ff907e14434
CRs-Fixed: 2025503
2017-09-26 22:19:58 -07:00