Commit Graph

17514 Commits

Author SHA1 Message Date
nshrivas
f516576fcf Release 5.2.0.186X
Release 5.2.0.186X

Change-Id: Id26d0b38e2a6e5c54c743b00ae8bc251e20de043
CRs-Fixed: 774533
2020-05-20 04:51:34 -07:00
nshrivas
6f002b687c Release 5.2.0.186W
Release 5.2.0.186W

Change-Id: I26d07c1866325eaf22476e5fab87efaf42f98a3e
CRs-Fixed: 774533
2020-05-20 03:31:18 -07:00
Liangwei Dong
1e9d981107 qcacld-3.0: Sync csr_roamProfile.ch_params with sap ctx
The mhz_freq_seg0 & mhz_freq_seg1 fields are not assigned
with values from sap ctx.
Fix by copy the whole the struct of "ch_params" to
csr_roamProfile.ch_params instead of one by one.

Change-Id: I92d7bc6ddeed1038597c7639d41fca059bf13457
CRs-Fixed: 2688693
2020-05-20 10:07:33 +08:00
nshrivas
2879bf9bf9 Release 5.2.0.186V
Release 5.2.0.186V

Change-Id: I62adf83a09b3c65304e3f8c01b7e6f96b3657070
CRs-Fixed: 774533
2020-05-19 18:00:55 -07:00
gaurank kathpalia
6000545045 qcacld-3.0: Fix RSN parsing issues in lim_check_rsn_ie
In lim_check_rsn_ie, driver first upack the RSN IE and then do pack,
During unpack RSN_Cap_present is set to 0, in case pmkid and grp
mgmt cipher is not present. Also if pmkid is not present during pack
mgmt grp cipher is not added.

This lead to RSN caps not filled and thus PMF capability
is not determined leading to PMF cert failures.

So do not reset rsn caps and consider grp mgmt ciper.
Also in lim_check_rsn_ie use the preexisting RSN IE instead
of creating the IEs again.

Change-Id: Icc360b2eed0197fcf1ae27a0ff6ae9879b45cf2b
CRs-Fixed: 2690029
2020-05-19 18:00:54 -07:00
nshrivas
7074930c61 Release 5.2.0.186U
Release 5.2.0.186U

Change-Id: I65090462389a80a01f74d48499e8db8c356524c8
CRs-Fixed: 774533
2020-05-19 16:08:21 -07:00
Srinivas Dasari
ad5a78ee9e qcacld-3.0: Send disconnect reason code as 0 for beacon miss
Currently, host driver sends disconnect reason code as
WLAN_REASON_UNSPECIFIED(1) when the station disconnects due to
continuous beacon miss and corresponding vendor specific reason
code is also sent to userspace. This change is introduced with
the commit I99bf4573b59dc810e0a1529fcd48061d10acae4e to
provide vendor specific reason codes for all internal
disconnections.
Driver used to send reason code as 0 for beacon miss before
this change. Few applications might still expect the same
reason code(0) and current behavior causes backward compatibility
issues. So, retain the same reason code 0 for beacon miss failure.

Change-Id: I82f215ba15ff6e215cb14ac08933e1491371dfde
CRs-Fixed: 2689257
2020-05-19 16:08:20 -07:00
nshrivas
060bbe47dd Release 5.2.0.186T
Release 5.2.0.186T

Change-Id: I6712755d83e98c0a67ed3f7e534512ef976acf40
CRs-Fixed: 774533
2020-05-19 14:47:09 -07:00
Rakesh Pillai
523a702050 qcacld-3.0: Remove bus bw vote when bus bw timer is stopped
Currently the driver votes for IDLE case when no
interface is associated. If the bus bandwidth timer
is stopped when there is no interface, we are not reducing
our votes, thereby causing higher power usage.

Remove our voting for bus bandwidth when the bus
bandwidth timer is stopped.
Also in the wlan resume case, vote for MEDIUM bus
bandwidth only if any interface is associated, else
vote for NONE.

Change-Id: I6cbe7f32036219b3b8914fb096562f44559931ce
CRs-Fixed: 2688853
2020-05-19 14:47:09 -07:00
nshrivas
2b7fc77cb9 Release 5.2.0.186S
Release 5.2.0.186S

Change-Id: I6b7c04c817340e02befb46fdb6db90373683cf47
CRs-Fixed: 774533
2020-05-19 08:40:58 -07:00
Srikanth Marepalli
ec2675cd04 qcacld-3.0: Add support for WPA3 SuiteB roaming
This commit enables support for SuiteB roaming for SHA384.
Based on the WPA3 SuiteB roam service capability advertisement
received from Firmware, we enable the support in Host.

Change-Id: Iab4e6bfc9c8ba7d604c2720c8cb848fce40dd6b4
CRs-Fixed: 2685975
2020-05-19 08:40:58 -07:00
Ben Wang
308c352957 qcacld-3.0: Add idle shutdown for virtual interface stop
Because FW don't support idle pdev suspend, and when all interface down
host will not send wow enable command because wakeup is not expected.
The idle shutdown precedure already exist for station mode, apply it to
virtual interface as well.Otherwise, it will cause wlan suspend failed

Change-Id: I5bde36298b1484b09b1bb52cf79841f99d5324be
CRs-Fixed: 2668600
2020-05-19 08:40:53 -07:00
nshrivas
c110038b83 Release 5.2.0.186R
Release 5.2.0.186R

Change-Id: I54d555824bd0b597e0d1494dcf0da34ec16d549b
CRs-Fixed: 774533
2020-05-19 07:22:08 -07:00
gaurank kathpalia
7ff0f92346 qcacld-3.0: Remove IBSS related INI and CFG
Remove IBSS related INI and CFG.

Change-Id: Iedebb858448d900bf4909fe5cafc2092baa60285
CRs-Fixed: 2687119
2020-05-19 07:22:08 -07:00
nshrivas
6bdd0a6989 Release 5.2.0.186Q
Release 5.2.0.186Q

Change-Id: Iaba2d949bb5a4eab4910d90f6e1cb1b32d24266b
CRs-Fixed: 774533
2020-05-18 08:45:10 -07:00
nshrivas
53a07a0333 Release 5.2.0.186P
Release 5.2.0.186P

Change-Id: Ied4761b4198b8ed9c7ef420f3be8b8009d034a42
CRs-Fixed: 774533
2020-05-18 05:51:27 -07:00
Abhinav Kumar
19369442ae qcacld-3.0: Use status for Peer Assoc Conf event
After receiving PEER_ASSOC_CMD from host, FW sends Peer Assoc
Conf event as ACK of PEER_ASSOC_CMD. After that, host sends Mx
(STA:M2/M4) messages.

Currently, FW sends Peer Assoc Conf event to HOST only in
success case and HOT fills event status as success always.

As per requirement, FW now sends Peer Assoc Conf event to HOST
in failure case. So now host should update event status whatever
coming from FW.

Fix is to update proper Peer Assoc Conf event status

Change-Id: I7e1aa808e1beece23a5dfc0c120765e389e3f0f9
CRs-Fixed: 2640242
2020-05-18 05:51:27 -07:00
nshrivas
1b9c3d7417 Release 5.2.0.186O
Release 5.2.0.186O

Change-Id: If2142b39de64838a0bfd68792a915f63bdbbc487
CRs-Fixed: 774533
2020-05-18 04:28:39 -07:00
Mohit Khanna
c8fb78d82d qcacld-3.0: Move BW voting to bus suspend/resume
Current during system suspend/resume, we remove/add votes for DDR/SNOC
during cfg80211 suspend/resume functions. However, check for pending TX
completions and RX softirq processing happens in the bus suspend
functions which get called after cfg80211 suspend/resume functions.

Hence, there is a small time window where there may be DDR transactions
from WLAN SOC with no vote for DDR/SNOC. This can lead to high bus
latency as seen by WLAN SOC. To avoid this, move the bus voting for
system suspend/resume operation in the bus suspend/resume functions.

Change-Id: I9242d438c1fa07cd7a2dec6994f437d07dd9bb68
CRs-Fixed: 2673101
2020-05-18 04:28:39 -07:00
nshrivas
184dd00b74 Release 5.2.0.186N
Release 5.2.0.186N

Change-Id: I83679958202d84794f058ea1a75189f37d5fb028
CRs-Fixed: 774533
2020-05-18 01:16:57 -07:00
Abhishek Singh
65fa031684 qcacld-3.0: Free lmac tx/rx ops in start module failure
The lmac tx/rx ops are not freed in failure case of start module
which lead to mem leak.

So Free lmac tx/rx ops in start module failure.

Change-Id: Ib222e7e31164488cca7b7cc3d241f895f49daa6d
CRs-Fixed: 2688176
2020-05-18 01:16:56 -07:00
nshrivas
a27406006b Release 5.2.0.186M
Release 5.2.0.186M

Change-Id: Ib3b4a3378c5f17f8e51484f5d519737887b3b1de
CRs-Fixed: 774533
2020-05-17 13:49:40 -07:00
Utkarsh Bhatnagar
26b28f5e20 qcacld-3.0: Consider both peer and Self Capabilities for PMF
Set PMF enabled bit for Association Frame only when both peer
and self supports it.

Change-Id: I11994da4db87e6a83b7ebe308720c45a9e2f0173
CRs-Fixed: 2686114
2020-05-17 13:49:40 -07:00
nshrivas
a8483f869d Release 5.2.0.186L
Release 5.2.0.186L

Change-Id: I6736152e2842eec2fa4f26e4cea9e5a511f61068
CRs-Fixed: 774533
2020-05-17 12:29:24 -07:00
nshrivas
71811889bd Release 5.2.0.186K
Release 5.2.0.186K

Change-Id: If443f388045ffa589cc4c48340a16047f1f14cb5
CRs-Fixed: 774533
2020-05-16 12:27:14 -07:00
Bapiraju Alla
8a14dd91ed qcacld-3.0: Reject SAP concurrency with monitor mode
Currently, SAP interface is being created when there is an existing
monitor mode interface. This concurrency is not allowed.

To avoid this, Add check for existing monitor mode interface before
creating SAP interface using add virtual interface.

Change-Id: Ia2318b880adaff39b7deb9e223140906e80a91ae
CRs-Fixed: 2680143
2020-05-16 12:27:13 -07:00
nshrivas
a6dcea22a2 Release 5.2.0.186J
Release 5.2.0.186J

Change-Id: Ic65c701b5bd76e4aa4ba403f09ffc65da89efae8
CRs-Fixed: 774533
2020-05-16 08:19:41 -07:00
Jinwei Chen
d4be970088 qcacld-3.0: do fisa flush per vdev only if fisa enabled in INI
If FISA related macro WLAN_SUPPORT_RX_FISA is configured but INI
dp_rx_fisa_enable is not set, fisa related context is not initialed
in dp_soc structure. if do fisa flush when vdev detach, invalid
access to fisa context will happen.

Do fisa flush per vdev only if fisa is enabled in INI.

Change-Id: Id3cecfa24f8ce26465a7809d4d9b2e92ae199c7d
CRs-Fixed: 2687949
2020-05-16 08:19:41 -07:00
nshrivas
0d36c7fb2b Release 5.2.0.186I
Release 5.2.0.186I

Change-Id: I3435b38b6e0953576a7083c8ec086e02f918790e
CRs-Fixed: 774533
2020-05-16 07:00:06 -07:00
gaurank kathpalia
714a6707f2 qcacld-3.0: Fix missing changes for latest frame parser
Few changes on tip got reverted as part of
I2b91a271d30b1230ef7bb14ee08d0b9da2706db4 so bring them back.

Change-Id: I12dc7304dba220f0d85763b01d4b04dd1540a3bb
CRs-Fixed: 2687980
2020-05-16 07:00:05 -07:00
gaurank kathpalia
d3420e7eac qcacld-3.0: Remove IBSS related code from frame handling
Remove IBSS related code from frame handling.

Change-Id: I1efc71392112a53247c5b88e5c2d09e4dee0b802
CRs-Fixed: 2687979
2020-05-16 07:00:00 -07:00
Utkarsh Bhatnagar
0d0fadb0dd qcacld-3.0: Consider Only dot11mode profiles if configured
If device is configured to Only dot11mode profile. Don't
connect to lesser profile the configured.

Change-Id: I7bf5157c0d7324c5ee7c4cdaac7806c0991d5dae
CRs-Fixed: 2683763
2020-05-16 06:59:56 -07:00
nshrivas
2eee1707ab Release 5.2.0.186H
Release 5.2.0.186H

Change-Id: I258a38789a3d3d33ce67bfd639ca323ac0952688
CRs-Fixed: 774533
2020-05-16 02:45:07 -07:00
Aditya Kodukula
3a81007f01 qcacld-3.0: Add a sysfs replacemnet for wowlDelPtrn
As part of WEXT replacement, replace wowlDelPtrn with a sysfs file.

file path: /sys/class/net/wlanxx/wowl_del_ptrn
	where wlanxx is adapter name

example: echo 08:01:FFFFFFFFFFFF0000:FC > wowl_del_ptrn

Change-Id: I446456df5bd003b7328ba7afc0a4fb5e60059e11
CRs-Fixed: 2682245
2020-05-16 02:45:07 -07:00
Alan Chen
b049a675ca qcacld-3.0: Remove P2P device mode when create adapter store/show files
There should only be STA and/or SAP modes for the new sysfs commands.
Remove P2P device mode when creating the store/show files.

Change-Id: Id090dff650466c907468eb530e9e24d96ce4d99d
CRs-Fixed: 2686781
2020-05-16 02:45:03 -07:00
nshrivas
d0cb939928 Release 5.2.0.186G
Release 5.2.0.186G

Change-Id: Ia8eec2a650bfd60b0fd8662a83021632081721a4
CRs-Fixed: 774533
2020-05-15 21:45:29 -07:00
Kiran Kumar Lokere
17c983d512 qcacld-3.0: Dont connect in HE mode if Rx MCS map is invalid
Check AP's HE Rx MCS map to connect in HE mode. If AP has invalid
MCS map connect in HT/VHT mode.

Change-Id: Ia95f08999f0536ac3463e02212f39d4fd09390d4
CRs-Fixed: 2684887
2020-05-15 21:45:25 -07:00
nshrivas
d46663217a Release 5.2.0.186F
Release 5.2.0.186F

Change-Id: Ibda9de99601ce49caf0fca98526c934271940207
CRs-Fixed: 774533
2020-05-15 20:14:43 -07:00
Bapiraju Alla
367572ad55 qcacld-3.0: Add a sysfs replacement for getChannel
As part of WEXT replacement, replace getChannel with a sysfs file.
This feature can be controlled using configuration flag
CONFIG_WLAN_SYSFS_GET_CHANNEL

file path: /sys/class/net/wlanxx/get_channel
	where wlanxx is adapter name

example command: cat /sys/class/net/wlan1/get_channel
	output: Channel number: 1

Change-Id: I3040af3d19eb83a819ca83cdbb74a70acd041698
CRs-Fixed: 2681803
2020-05-15 20:14:43 -07:00
nshrivas
320475edba Release 5.2.0.186E
Release 5.2.0.186E

Change-Id: I11e65a7f82213b97ca55873ad59bcfa3cb6429b8
CRs-Fixed: 774533
2020-05-15 18:47:23 -07:00
Utkarsh Bhatnagar
3c5918e041 qcacld-3.0: Removed WEP_DEFAULT_KEY
Removed WEP default key with the corresponding functions

Change-Id: I721b60969e6aea7f0abf58edcd4028dad5b03a25
CRs-Fixed: 2687348
2020-05-15 18:47:23 -07:00
gaurank kathpalia
322d8eb806 qcacld-3.0: Cleanup IBSS code from LIM
Cleanup IBSS related code from LIM.

Change-Id: Idebb0f55aa27751f1fdd7b4c1fb8124ae29eb382
CRs-Fixed: 2687017
2020-05-15 18:47:18 -07:00
Sourav Mohapatra
a196271737 qcacld-3.0: Synchronize hdd_driver_unload against other vdev trans
Unloading the driver is a driver transition. As a part of this driver
unload, the PLD calls the pld_remove which is a psoc transition. This is
the reason why the driver unload is currently not being protected as
there is a call to psoc transition within it.

This absence of locking can lead to potential deadlock scenario. Assume the
example of add_virtual_interface and rmmod coming in parallel.

	T1: add_virtual_interface (starts a vdev_trans)

	T2: rmmod comes in parallel
		-> unregister_driver goes to PLD
		-> PLD calls pld_remove (psoc_trans waits due to T1)

	T1: add_virtual_interface continues
		-> Calls idle_restart that goes to PLD
		-> PLD waits from pld_remove (T2) to complete first

	T1 and T2 are waiting for each other to exit resulting in
	deadlock.

To resolve this, add a driver_trans_start_wait to hdd_driver_unload.
This will ensure that either the unload waits for all other trans to be
completed before proceeding or set the driver_load_unload flag which
will result in upcoming trans to get rejected.

Change-Id: I64b03843065e5eef7c2be209c1f8cb936bdd0742
CRs-Fixed: 2683032
2020-05-15 18:47:11 -07:00
Rachit Kankane
fdcdb2bdc7 qcacld-3.0: Handle tx_power_level under radio stat
Host driver do receives radio tx power level stats as part of
radio stats even though we have different event ID for that.
Handling the tx_power_level as part of radio stats only if
num_tx_power_level is set.

Change-Id: I46aff51c70c444c94c9b10f32b7776ba4a1ca4e8
CRs-Fixed: 2686882
2020-05-15 18:47:06 -07:00
nshrivas
6eea791b3f Release 5.2.0.186D
Release 5.2.0.186D

Change-Id: I9f83a9d889d3ab9222e243ba8b60a8cda2b34bdb
CRs-Fixed: 774533
2020-05-15 16:38:05 -07:00
gaurank kathpalia
86a93dbbde qcacld-3.0: Remove IBSS specific code from WMA
Remove IBSS specific code from WMA.

Change-Id: Iacdace8435fd8e6c167df24167db23a14efe4f15
CRs-Fixed: 2687016
2020-05-15 16:38:05 -07:00
Jinwei Chen
b55574eb99 qcacld-3.0: Skip RX TLV header for RX fragment data
In dp_fisa_rx() function, L2 head pointer for fragment data is not
set correctly, actually it points to RX TLV header.
Skip RX TLV for RX fragment data.

Change-Id: Ie326734c657f45024a83792b103f931723148c92
CRs-Fixed: 2686851
2020-05-15 16:38:00 -07:00
Bapiraju Alla
6b2b3ea7c8 qcacld-3.0: Add a sysfs replacement for getTdlsPeers
As part of WEXT replacement, replace getTdlsPeers with a sysfs file.

This feature can be controlled using configuration flag
CONFIG_WLAN_GET_TDLS_PEERS

file path: /sys/class/net/wlanxx/get_tdls_peers
	where wlanxx is adapter name

example command: cat /sys/class/net/wlanxx/get_tdls_peers

Change-Id: I66123266d6a3bf4c5c82f70186e35aa9942533b1
CRs-Fixed: 2681810
2020-05-15 16:37:56 -07:00
Utkarsh Bhatnagar
eeaa86c203 qcacld-3.0: Removed bTkipCntrMeasActive from pe_session
bTkipCntrMeasActive was not getting filling anywhere, hence
was removed from pe_session struct along with releveant code
where it was checked.

Change-Id: I8926bedef61c6468f8de2f73b4991c4c4860810b
CRs-Fixed: 2687067
2020-05-15 16:37:52 -07:00
nshrivas
899a637d82 Release 5.2.0.186C
Release 5.2.0.186C

Change-Id: I222f20ae73a14aec17e273b8b898a296246fda9b
CRs-Fixed: 774533
2020-05-15 10:41:25 -07:00
Jia Ding
30531d5a10 qcacld-3.0: Properly populate struct csr_del_sta_params
eCsrForcedDeauthSta equals to 14 and as far as reason
codes are concerned, it is MIC_FAILURE. It is observed
that when wlan is configured as SAP-SAP DBS with same
SSID and same encryption WPA2/WPA3 mixed mode, it leads
to an IOT issue where clients with iOS 13 in particular
are not able to auto reconnect back after wlan is restarted.

Thus populate subtype to IEEE80211_STYPE_DEAUTH >> 4 and
reason_code to WLAN_REASON_DEAUTH_LEAVING as defined in
kernel since station_del_parameters is a kernel defined
structure.

Also correct internal use of subtype since right shift
4 for SIR_MAC_MGMT_DEAUTH and SIR_MAC_MGMT_DISASSOC
will always end up with value 0.

Change-Id: I60aa5ed4e7b672b7a92f05ad322fcb48ab0526d4
CRs-Fixed: 2678637
2020-05-15 10:41:25 -07:00
Abhishek Singh
2281c2d6bb qcacld-3.0: remove dependency of public files from wlan_objmgr_psoc_obj.h
Remove dependency of wlan_lmac_if_def headerfiles from
wlan_objmgr_psoc_obj.h

Change-Id: I5f6120a97be3ae6835023ceaef455088820809de
CRs-Fixed: 2657771
2020-05-15 10:41:20 -07:00
Abhinav Kumar
f2d954d22e qcacld-3.0: Fix emergency roaming failure
DUT perform FT-IM association instead of FT roaming to
process emergency deauth from connected AP.

In the case of FT-IM association, FW sends assoc requests
instead of re-assoc requests in roam sync indication to
host. Host truncate fixed parameters from assoc req and
forward frame tagged parameters to supplicants.

In re-assoc request fixed params length is 10bytes and
in assoc request, fixed param length is 4 bytes.
Currently host always truncating 10 bytes of assoc/re-assoc
frame present in roam sync ind and forward it to supplicant.

This results in extra first 6 bytes of assoc frame get stripped
by host. Due to this supplicant is not able to parse frame
content properly. This leads to 11r roaming failure.

As in case of FT-IM association roaming, FW forward assoc req
in roam sync ind, Host should truncate 4 bytes of fixed
parameters.

Fix is to ensure that host truncate only 4 bytes if assoc
request present in roam sync ind data.

Change-Id: Ie1352e41f9caffc4a28ed046330a73f303af36da
CRs-Fixed: 2664097
2020-05-15 10:41:14 -07:00
nshrivas
4addebbd4b Release 5.2.0.186B
Release 5.2.0.186B

Change-Id: Idb14da030a1e6e737328d4fe1801fcf61a5683d7
CRs-Fixed: 774533
2020-05-15 06:56:02 -07:00
Abhinav Kumar
e3e903bf37 qcacld-3.0: Introduce new INI to enable/disable FT-IM
With specific AP(s), FW needs to perform FT initial mobility
association instead of FT roaming for deauth roam trigger.

This ini is used to configure "FT roaming for deauth roam trigger"
behavior from the HOST.

Change-Id: Id754a21f7ac2c330019055646f79c79db3e0c52c
CRs-Fixed: 2665882
2020-05-15 06:56:02 -07:00
Nirav Shah
cf164af18d qcacld-3.0: Add update_seq_num flag to htt_rx_mpdu_desc_seq_num
In case of partial reorder, seq number is sent by FW
when first_msdu bit is set in msdu. For all other msdus host
maintain copy of cur_seq_num_hl in pdev.
cur_seq_num_hl gets updated when htt_rx_mpdu_desc_seq_num API
is called. Currently htt_rx_mpdu_desc_seq_num API is called
from multiple functions. Add update_seq_num flag to make sure that
cur_seq_num_hl updates only during store function.

Change-Id: Ie3178ee6d1642dbeaf0cea032dc80e0ecccc1dc2
CRs-Fixed: 2683869
2020-05-15 06:55:57 -07:00
nshrivas
2721fcec48 Release 5.2.0.186A
Release 5.2.0.186A

Change-Id: Iec06bbaa8c0684edd4ef798150f172994a72c2ea
CRs-Fixed: 774533
2020-05-15 05:24:34 -07:00
Nirav Shah
a218ef21d3 qcacld-3.0: Handle last msdu bit not set in partial reorder
In case of partial reorder, handle scenario if last msdu bit
is not set.

Change-Id: I7d0a671886fe2c0f352769bf3e68e2d22408a978
CRs-Fixed: 2669907
2020-05-15 05:24:33 -07:00
Jinwei Chen
6409e4a8c5 qcacld-3.0: add FISA flush when vdev detach
In some case, FISA flush for one FISA entry is missed which
lead to some RX frames stay at FISA entry forever, this will
cause skb leak.
  Do FISA flush per vdev when vdev detach to avoid skb leak.

Change-Id: Ie6bdf885c740a99b089290257ea6936d5804d142
CRs-Fixed: 2679221
2020-05-15 05:24:30 -07:00
nshrivas
d53ba82eaa Release 5.2.0.186
Release 5.2.0.186

Change-Id: I68dfd14d27ee226b2433979191495db1323c86d1
CRs-Fixed: 774533
2020-05-15 00:36:41 -07:00
Alan Chen
de1d2e193e qcacld-3.0: Add a sysfs replacement for get_range_ext
As part of WEXT replacement, replace get_range_ext with a sysfs file.

file path: /sys/class/net/wlanxx/get_range_ext
	where wlanxx is adapter name

example: cat /sys/class/net/wlanxx/get_range_ext

Change-Id: Ic4b5076efce837d9c98167d6a807722adbbc74df
CRs-Fixed: 2683682
2020-05-15 00:36:40 -07:00
Alan Chen
d463ed704c qcacld-3.0: Add a sysfs replacement for set_dp_trace
As part of WEXT replacement, replace set_dp_trace with a sysfs file.

file path: /sys/kernel/wifi/set_dp_trace

example: echo 1 1 1 > set_dp_trace

Change-Id: I3358ad4f483f66f643c4aa5538fd2c9172d8f077
CRs-Fixed: 2683643
2020-05-15 00:36:35 -07:00
nshrivas
5e6af7256a Release 5.2.0.185Z
Release 5.2.0.185Z

Change-Id: I95bd6683445e34c3afea134c2236643729a3df1c
CRs-Fixed: 774533
2020-05-14 23:03:00 -07:00
Alan Chen
d9641d06ce qcacld-3.0: Add a sysfs replacement for txrx_stats
As part of WEXT replacement, replace txrx_stats with a sysfs file.

file path: /sys/class/net/wlanxx/txrx_stats
	wlanxx is adapter name

example: echo 1 1 > txrx_stats

Change-Id: I677111a48eb117044ac992616d468c1604b2bae0
CRs-Fixed: 2682369
2020-05-14 23:03:00 -07:00
Alan Chen
072b0b5daa qcacld-3.0: Add a sysfs replacement for txrx_fw_stats
As part of WEXT replacement, replace txrx_fw_stats with a sysfs file.

file path: /sys/class/net/wlanxx/txrx_fw_stats
	wlanxx is adapter name

example: echo 1 > txrx_fw_stats

Change-Id: Icad1f920ef01a4b86efca786da4873a361cd2dfc
CRs-Fixed: 2682352
2020-05-14 23:02:56 -07:00
Alan Chen
3264896675 qcacld-3.0: Add a sysfs replacement for setRadar
As part of WEXT replacement, replace setRadar with a sysfs file.

file path: /sys/class/net/wlanxx/set_radar
	wlanxx is adapter name

example: echo 1 > set_radar

Change-Id: I6451f506c1525dcfc48c988f965cc6dedf64b369
CRs-Fixed: 2680424
2020-05-14 23:02:51 -07:00
Alan Chen
e735aef7ac qcacld-3.0: Add a sysfs replacement for setMonChan
As part of WEXT replacement, replace setMonChan with a sysfs file.

file path: /sys/class/net/wlanxx/set_mon_chan
	wlanxx is adapter name

example: echo 1 1 > set_mon_chan

Change-Id: Id7d21b23129fdf6e37c99924ad91a19e3c03a0d2
CRs-Fixed: 2678501
2020-05-14 23:02:47 -07:00
nshrivas
8f37fe7135 Release 5.2.0.185Y
Release 5.2.0.185Y

Change-Id: I51161449b842f0d49d29b08f909082f38416958f
CRs-Fixed: 774533
2020-05-14 21:34:58 -07:00
Alan Chen
96d62585ee qcacld-3.0: Add a sysfs replacement for set_scan_cfg
As part of WEXT replacement, replace set_scan_cfg with a sysfs file.

file path: /sys/kernel/wifi/set_scan_cfg

example: echo 1 1 1 > set_scan_cfg

Change-Id: I0807a0fc7ab4e3963386f5f5979b039c291896d9
CRs-Fixed: 2678470
2020-05-14 21:34:58 -07:00
nshrivas
28edf2eb89 Release 5.2.0.185X
Release 5.2.0.185X

Change-Id: Ie17820384a8b08f061f65eb11351c0350e540ba8
CRs-Fixed: 774533
2020-05-14 17:49:11 -07:00
Utkarsh Bhatnagar
b0bf5ddb1b qcacld-3.0: Removed FEATURE_WLAN_RMC feature
Removed all the API realted to  FEATURE_WLAN_RMC
as well as related SME/WMA code.

Change-Id: Id471ccabcfd183fbcc7ff4e4953991f9e1551526
CRs-Fixed: 2686364
2020-05-14 17:49:11 -07:00
nshrivas
d00d63fedd Release 5.2.0.185W
Release 5.2.0.185W

Change-Id: Id99313de3553c94563655997602ca0cc93a37630
CRs-Fixed: 774533
2020-05-14 13:04:13 -07:00
Jinwei Chen
bf047d7143 qcacld-3.0: Bypass FISA for non-regular RX delivering frame
Bypass FISA for non-regular RX delivering frame

Change-Id: I835229379779057f1b8cddcfffc3b3863137e5bc
CRs-Fixed: 2683727
2020-05-14 13:04:13 -07:00
nshrivas
ebb777bda8 Release 5.2.0.185V
Release 5.2.0.185V

Change-Id: I5781e9f56e1e684231e3ced6b2a81cb2f98fee5e
CRs-Fixed: 774533
2020-05-14 11:20:42 -07:00
Bapiraju Alla
ba6b3520d3 qcacld-3.0: Add a sysfs replacement for get_sta_info
As part of WEXT replacement, replace get_sta_info with a sysfs file.

This feature can be controlled using configuration flag
CONFIG_WLAN_SYSFS_GET_STA_INFO

file path: /sys/class/net/wlanxx/get_sta_info
	where wlanxx is adapter name

example command: cat /sys/class/net/wlanxx/get_tdls_peers

Change-Id: Iac23cdc92a860279480ec9703697f22b2f0b5223
CRs-Fixed: 2682163
2020-05-14 11:20:42 -07:00
nshrivas
6cca230131 Release 5.2.0.185U
Release 5.2.0.185U

Change-Id: Id66f0c4b9ff303178ef83a137e73fea79d5ebeb6
CRs-Fixed: 774533
2020-05-14 08:49:43 -07:00
Aditya Kodukula
6e244ca777 qcacld-3.0: Add a sysfs replacement for wowlAddPtrn
As part of WEXT replacement, replace wowlAddPtrn with a sysfs file.

file path: /sys/class/net/wlanxx/wowl_add_ptrn
	where wlanxx is adapter name

example: echo 08:01:FFFFFFFFFFFF0000:FC > wowl_add_ptrn

Change-Id: I46d00fd8a15851cf2838f3b07a0ec2d1050d1087
CRs-Fixed: 2680490
2020-05-14 08:49:43 -07:00
nshrivas
e10a627c6c Release 5.2.0.185T
Release 5.2.0.185T

Change-Id: I049727025e846dc7bf863d6caf99e18c0d806719
CRs-Fixed: 774533
2020-05-14 07:04:53 -07:00
gaurank kathpalia
0907e9f8b3 qcacld-3.0: Cleanup IBSS in CSR layer
Cleanup IBSS related code from CSR/SME layer.

Change-Id: I4a15b0c59b55382ffb6a5c67049a6b24e3e00cbe
CRs-Fixed: 2685889
2020-05-14 07:04:53 -07:00
nshrivas
d280fe0dd0 Release 5.2.0.185S
Release 5.2.0.185S

Change-Id: I89de678544f14dec25a1bada646e63f1416e9584
CRs-Fixed: 774533
2020-05-14 02:17:00 -07:00
Aditya Kodukula
326f4481d9 qcacld-3.0: Add a sysfs replacemnet for wow_ito
As part of WEXT replacement, replace wow_ito with a sysfs file.

file path: /sys/kernel/wifi/wow_ito

example: echo 1 > wow_ito

Change-Id: I11cf9acfc4282b910145efa527682ab1738eaaa0
CRs-Fixed: 2680332
2020-05-14 02:17:00 -07:00
Aditya Kodukula
5d77b1b715 qcacld-3.0: Add a sysfs replacement for scan_disable
As part of WEXT replacement, replace scan_disable with a sysfs file.

file path: /sys/kernel/wifi/scan_disable

example: echo 1 > scan_disable

Change-Id: Icaa7083d0f7b2cefd0f77cb7da7fe0d3d52d36c5
CRs-Fixed: 2676764
2020-05-14 02:16:55 -07:00
Abhishek Ambure
a7b4ee1df8 qcacld-3.0: Don't force RSSI trigger in controlled roaming mode
Host configures rssi trigger, connected ap rssi delta and rssi
threshold in firmware. As rssi threshold is hit, firmware start
roam scan. Firmware decreases further RSSI threshold by connected
ap rssi delta if matching profile ap not found and so on.
Example: STA connects to an AP and host sets rssi trigger,
connected ap rssi delta=5 and rssi threshold as -25dbm. Firmware
starts roam scan as the rssi threshold is hit. In the roam scan
if desired profile ap is not found, decreases rssi threshold
by 5dbm i.e connected ap rssi delta. Now rssi threshold becomes
-30dbm and then firmware triggers roam scan and so on.

Thus the rssi threshold changes dynamically when controlled
roaming mode is set from userspace, to fix this do not force
RSSI triggers when controlled roaming from userspace is enable.

Change-Id: I1de3f71ca96de9f464d5d33b0271f99c55cff535
CRs-Fixed: 2681882
2020-05-14 02:16:51 -07:00
nshrivas
fa053e4857 Release 5.2.0.185R
Release 5.2.0.185R

Change-Id: Ibce6b05f57c8ddefa5729d7c25e3a8501550a82c
CRs-Fixed: 774533
2020-05-13 21:07:14 -07:00
Nirav Shah
5537b67b89 qcacld-3.0: Update rx ldpc capability based on ini configuration
Update rx ldpc capability based on ini
configuration(gEnableRXLDPC).

Change-Id: Ic160850f4fbba19a8faebc7f0c0545f21834de93
CRs-Fixed: 2677946
2020-05-13 21:07:14 -07:00
nshrivas
deb6257efe Release 5.2.0.185Q
Release 5.2.0.185Q

Change-Id: Ic249f7508d114ae4fbb7ae84a8a573176b8b7fa0
CRs-Fixed: 774533
2020-05-13 19:17:37 -07:00
nshrivas
f3a05294f4 Release 5.2.0.185P
Release 5.2.0.185P

Change-Id: I12eb48264e9c4113afad3ed045babba1f9735737
CRs-Fixed: 774533
2020-05-13 12:39:42 -07:00
Bapiraju Alla
9171aece4a qcacld-3.0: Add a sysfs replacement for connect info
Add sysfs entry to get connection info instead of debugfs.

This feature can be controlled using configuration flag
CONFIG_WLAN_SYSFS_CONNECT_INFO

file path: /sys/class/net/wlanxx/connect_info
	where wlanxx is adapter name

example command: cat /sys/class/net/wlanxx/connect_info

Change-Id: Ibe183e4665cdbea66b83abd4732e7ef33843612d
CRs-Fixed: 2682856
2020-05-13 12:39:41 -07:00
Bapiraju Alla
5cb4bcdee5 qcacld-3.0: Handle memory leak during start/stop SAP
Free beacon memory in all execution paths to avoid memory leak.

Change-Id: Ibc5f8c90a142891fd4e60c79ca5ed75c708ecad6
CRs-Fixed: 2682205
2020-05-13 12:39:38 -07:00
nshrivas
a6c7940468 Release 5.2.0.185O
Release 5.2.0.185O

Change-Id: I11a24283abcbc576c0cc5b30446918d53b5d9109
CRs-Fixed: 774533
2020-05-13 08:37:28 -07:00
nshrivas
1bb89fb4dc Release 5.2.0.185N
Release 5.2.0.185N

Change-Id: I06199d54ecd128f9fda041949ec57c04571e4be8
CRs-Fixed: 774533
2020-05-13 04:57:07 -07:00
gaurank kathpalia
f47d2eb63f qcacld-3.0: Remove IBSS support from HDD
Remove IBSS support from HDD layer.

Change-Id: Ie581faa15317b8523b36507bb1662246b95c2e47
CRs-Fixed: 2684352
2020-05-13 04:57:07 -07:00
nshrivas
37f2e82393 Release 5.2.0.185M
Release 5.2.0.185M

Change-Id: I9bf6ca85b91e129f24367aac75bed5ebbfe216a0
CRs-Fixed: 774533
2020-05-13 01:30:20 -07:00
Wu Gao
aeb4629aa4 qcacld-3.0: Correct the names of structure and API about spectral
There is change modified the name of structure and API about spectral
cmd operations registration. So, add this change to correct them in
wma layer.

Change-Id: Icf1b8eb84e6cd6d110fe32ab30566c68ea33e2d7
CRs-Fixed: 2682782
2020-05-13 01:30:20 -07:00
Vulupala Shashank Reddy
d4724cf9af qcacld-3.0: Delete older PMK of all APs which have the same PMK
Currently when supplicant sends set_pmkid_cache (Either after initial
connection or after session timeout with AP) to host to set
the new pmkid derived after the EAP is done. Host deletes PMK entry
only if bssid/ssid matches.
For OKC, the PMK derived from the initially associated AP will be
used for deriving PMKID for all APs. In case of connection with OKC
supported APs, If STA receive session timeout from AP, HOST should
delete older PMK of all APs which have the same PMK. Else While
roaming HOST could send older PMK to OKC supported AP and this
results PMK flush in FW and leads to full EAP.

Change-Id: I95881db229d5193cbdc22c5f30e1375b3892fbd4
CRs-Fixed: 2679737
2020-05-13 01:30:15 -07:00
nshrivas
8dc196464b Release 5.2.0.185L
Release 5.2.0.185L

Change-Id: Iabb04110fa8adfbbb9ebff0ccf8a77a4ee0138be
CRs-Fixed: 774533
2020-05-12 23:36:47 -07:00
Sourav Mohapatra
32bc20bc53 qcacld-3.0: Use hex dump instead of printing WOW pattern
Currently in the driver, we are printing the WOW pattern to the kernel
logs. This pattern is an array and printing it one by one can lead to
excessive logging.

Instead of printing one by one, use qdf_trace_hex_dump() to print the
pattern in one go. Also move the logging from kernel to the driver logs.

Change-Id: I6a3b02b0e57d8c27bb5ea4a7c44f67634c0f33fd
CRs-Fixed: 2661242
2020-05-12 23:36:47 -07:00
Jingxiang Ge
fa85d03310 qcacld-3.0: Add a sysfs replacement for modify_acl
As part of WEXT replacement, replace modify_acl with a sysfs file.
file path: /sys/class/net/wlanxx/modify_acl
example: echo 0x00 0x11 0x22 0x33 0x44 0x55 0 0 > modify_acl

Change-Id: I2022a50be84fa21a437aed9ecfdbe4d4bba613df
CRs-Fixed: 2682881
2020-05-12 23:36:42 -07:00
nshrivas
17a9810ebe Release 5.2.0.185K
Release 5.2.0.185K

Change-Id: Iac23e051c5313316d6d527e98bd3c945e53416c6
CRs-Fixed: 774533
2020-05-12 15:36:08 -07:00
Vevek Venkatesan
cdfa210156 qcacld-3.0: free the skb if osif_vdev_sync_op_start failed
If osif_vdev_sync_op_start failed, that means operation on
net_dev is not permitted. So, free the skb before return.

Change-Id: Icd366c2d9d947e39f26f1b21878bfe0154a55fdc
CRs-Fixed: 2681018
2020-05-12 15:36:04 -07:00