Commit Graph

6777 Commits

Author SHA1 Message Date
Vignesh Viswanathan
56f262563b qcacld-3.0: Add sanity check to limit mgmt frames data len
Currently the mpdu_data_len in Rx pkt meta is not checked for
upper bound in wma_form_rx_packet.

Add sanity check to drop the packet if mpdu_data_len is
greater than 2000 bytes. Also add upper bound check for
frame_len in lim_process_auth_frame function.

Change-Id: I7ab454045e2f6d278351dcabde6da556f9f741e0
CRs-Fixed: 2093392
2017-09-25 05:43:05 -07:00
yeshwanth sriram guntuka
5c71a29b34 qcacld-3.0: Set length of challenge text sent by SAP to 128
SIR_MAC_AUTH_CHALLENGE_LENGTH is updated to 253 from
128 as per IEEE spec due to connection fails between
DUT-SAP and old ref-STA. Auth failure occurs as encrypted
data sent by ref-STA is only 128 bytes instead of 253
bytes.

Fix is to set length of challenge text sent by SAP
to 128 bytes.

Change-Id: I81409bb58ad34e469c54e2909f45b8a6826eb06a
CRs-Fixed: 2096512
2017-09-25 05:43:03 -07:00
snandini
e231f370da Release 5.2.0.44W
Release 5.2.0.44W

Change-Id: I5f64b50826f9e5814383e4741b8708579c3ded35
CRs-Fixed: 774533
2017-09-25 03:22:03 -07:00
Will Huang
2788dcf8f2 qcacld-3.0: Init cap before use it
In function ol_configure_target cap is used uninitialized when call
pld_get_platform_cap fail, although pld_get_bus_type and
hif_get_bus_type return same bus type, so actually it has no issue here,
but it look not clear here, init it explicitly.

Change-Id: I001956521c62c14b3537b399bbca1791b274a4c7
CRs-Fixed: 2115553
2017-09-25 03:22:03 -07:00
snandini
22f15d7957 Release 5.2.0.44V
Release 5.2.0.44V

Change-Id: I0c355d986aacd0ef06545efc7c7329797b14d30a
CRs-Fixed: 774533
2017-09-24 01:21:50 -07:00
Sandeep Puligilla
d9f88ce8d0 qcacld-3.0: Don't defer beacon and probe response in LIM
Don't defer beacon and probe response in LIM

Change-Id: I92c31f6eb2c4ce2d4f5ddf67684f4042c90108dd
CRs-Fixed: 2033037
2017-09-24 01:21:49 -07:00
Sandeep Puligilla
1426d619f3 qcacld-3.0: Process assoc indication in sme callback
In a noisy enviornment assoc indication in SME queueu
is not getting processed due to multiple beacons/probes
getting processed in PE queue which is high priority
than SME queue.

Instead of posting a message to SME queue, assoc indication
will run to completion using sme callback mechanism.

Change-Id: I4dc7e3ef0c91964ebc842afa38b7815464e0e406
CRs-Fixed: 2114425
2017-09-23 20:44:30 -07:00
snandini
7b797a73b2 Release 5.2.0.44U
Release 5.2.0.44U

Change-Id: I964a4619e9e3a42cbc251382b2c535132d3e214a
CRs-Fixed: 774533
2017-09-23 05:21:27 -07:00
Ganesh Kondabattini
3bf9efe42a qcacld-3.0: Make sure that peer exists before updating peer state
Before sending tdls peer state update command to FW make sure
that tdls peer exists.

Change-Id: I26b5daf9896b0f57fbcfedadcabd67ddd000b257
CRs-Fixed: 2032770
2017-09-23 05:21:26 -07:00
snandini
3a08098da9 Release 5.2.0.44T
Release 5.2.0.44T

Change-Id: I61192ce8a2ff59fde8f2872a66299d71ff86ca33
CRs-Fixed: 774533
2017-09-23 01:34:00 -07:00
Dustin Brown
d551143bef qcacld-3.0: Convert nla_parse to hdd_nla_parse
In order to support multiple nla_parse function signatures across
different kernel versions, a new hdd_nla_parse wrapper was introduced.
However, some propagations were made that reintroduced nla_parse.
Convert these calls to nla_parse to hdd_nla_parse instead.

Change-Id: Ib60d51252d943c59648682fb2794c3dcbae7cbf4
CRs-Fixed: 2113637
2017-09-23 01:33:59 -07:00
snandini
d565ecc3af Release 5.2.0.44S
Release 5.2.0.44S

Change-Id: If0c0853b7581eaa427912bacaf4079673ad6b88d
CRs-Fixed: 774533
2017-09-22 18:39:25 -07:00
Kiran Kumar Lokere
951bad85e6 qcacld-3.0: Do not restart PS timer if PS check fails
Power save checks for user configuration and STA connection state,
if either of these fails then do not restart the auto power save
timer.

Change-Id: I83a337b828677464c74800adf690c00fda68fadc
CRs-Fixed: 2112585
2017-09-22 18:39:23 -07:00
snandini
b7532358e5 Release 5.2.0.44R
Release 5.2.0.44R

Change-Id: Ibe6291263fab7960c3ca33de123b2dcdb46cec76
CRs-Fixed: 774533
2017-09-22 18:39:21 -07:00
Yue Ma
096189d513 qcacld-3.0: Properly handle uevent for PCIe devices
When uevent is introduced for integrated devices, it breaks
the PLD handling for PCIe devices. Hence correct it by using
proper enum.

Change-Id: Iacb5037932065f1822c1408d74f8aa3824ff0e71
CRs-fixed: 2114385
2017-09-22 18:39:18 -07:00
snandini
f2ba5ffe8b Release 5.2.0.44Q
Release 5.2.0.44Q

Change-Id: Ia4dff2d38fc91ac7a4ab18b7d55b5d6b79ffd8ac
CRs-Fixed: 774533
2017-09-22 18:39:16 -07:00
yeshwanth sriram guntuka
64447aa882 qcacld-3.0: Send default ies in scan request to fw
On framework initiated scan, ies are not sent in
scan request from upper layer and default scan ies are
not sent as part of scan request sent to firmware. This
results in not including oce ie in probe requests for
framework initated scans

Fix is to copy default ies to ie field in scan request
sent to firmware.

Change-Id: I895563bafc2a2b6e483d08cb28ee44ad34f5af70
CRs-Fixed: 2087124
2017-09-22 18:39:13 -07:00
yeshwanth sriram guntuka
ea63f63861 qcacld-3.0: Send default scan ies to fw after PDR
Default scan ies are sent to fw after interface
is up via set wifi configuration vendor subcommand.
In case of PDR, default ies are not sent again to
fw.

Fix is to send default scan ies to fw after PDR.

Change-Id: Ia42f5b49711ec77b84ae3031aa7998283c1d4ec8
CRs-Fixed: 2100739
2017-09-22 18:39:10 -07:00
snandini
98cd54024c Release 5.2.0.44P
Release 5.2.0.44P

Change-Id: I75d76206215f4854ee21b832263856a93c574f2e
CRs-Fixed: 774533
2017-09-22 18:39:08 -07:00
Jeff Johnson
a0fa814f93 qcacld-3.0: Remove pStaAddIE from the SAP context
Currently the SAP has logic to extract and locally save a collection
of Additional IEs. But this is legacy code inherited from a version
of the driver that supported in-driver SAP, and now the SAP
functionality is handled primarily by hostapd. Since this local copy
of the Additional IEs is never used, remove it.

Change-Id: I9bb1f7d44dfdeb4c908016aad365ee1b94a97b29
CRs-Fixed: 2114375
2017-09-22 18:39:06 -07:00
Jeff Johnson
dba35543b8 qcacld-3.0: Remove pStaWapiReqIE from the SAP context
Currently the SAP has logic to extract and locally save the WAPI
IE. But this is legacy code inherited from a version of the driver
that supported in-driver WAPI, and now the SAP WAPI functionality is
handled by hostapd. Since this local copy of the WAPI IE is never
used, remove it.

Change-Id: I57cad0d8e44ff1ca5a7a61454a21aac61bf873c0
CRs-Fixed: 2114153
2017-09-22 18:39:03 -07:00
Mohit Khanna
31776f8b90 qcacld-3.0: Fix data rate for beacon frames
Currently, in monitor mode, beacon frames are showing an incorrect phy
rate (0). This is because the values in the RX descriptor for
interpreting the legacy rates have changed in ihelium.

Make changes in host to interpret the new values into data rates correctly.

Change-Id: Ibf845666943fd718b657c0128758dabfb64a38ef
CRs-Fixed: 2082456
2017-09-22 18:36:09 -07:00
snandini
4a084bdc6d Release 5.2.0.44O
Release 5.2.0.44O

Change-Id: Iee2423a60f1e83ff394362f43a6a6755eb3e34cc
CRs-Fixed: 774533
2017-09-21 20:18:04 -07:00
Vignesh Viswanathan
66c951d567 qcacld-3.0: Dump disconnect stats
Add a new dumpStats parameter (25) to dump disconnect stats.
The following command will dump disconnect Stats into QXDM.
>iwpriv wlan0 dumpStats 25

Change-Id: I0908c947b5c829f51b087871ad11d5674908dca2
CRs-Fixed: 2058958
2017-09-21 20:18:04 -07:00
snandini
a129501c7d Release 5.2.0.44N
Release 5.2.0.44N

Change-Id: Id55a799e119e7e0c0f4adc25ace1049f385c5de9
CRs-Fixed: 774533
2017-09-21 19:07:34 -07:00
Yun Park
777d724e77 qcacld-3.0: HDD IPA event handler waits resource load/unload complete
There is a race condition bewteen CLIENT_DISCONNECT and AP_DISCONNECT,
which causes short HDD IPA interfaces, so AP_CONNECT failed afterward.
HDD IPA event handler waits IPA resource load/unload complete.
Once timed out, add the event in a pending queue for loading icase or
ignore it for unloading case.
Remove redundant CLIENT_DISCONNECT event from del_sta.

Change-Id: I671ecec6f236d52a1b51cb78b9c7466f2cde82aa
CRs-Fixed: 2027714
2017-09-21 19:07:33 -07:00
Dustin Brown
76b9212c95 qcacld-3.0: Convert ieee80211_band to nl80211_band
In order to support Linux kernel versions 4.7+, nl80211_band must be
used instead of ieee80211_band. Convert all usages of ieee80211_band
to nl80211_band.

Change-Id: Iaf7a1efbaf54166b4d6e52a0d6b68b32c871028b
CRs-Fixed: 2114157
2017-09-21 19:07:30 -07:00
snandini
5bdd9f7c57 Release 5.2.0.44M
Release 5.2.0.44M

Change-Id: I5bf815dd8d93861e162b690247b393b98e7957d3
CRs-Fixed: 774533
2017-09-20 22:58:28 -07:00
Jeff Johnson
29adc0738b qcacld-3.0: Remove APWPSIEs from the SAP context
The SAP no longer maintains WPS information internally and the
APWPSIEs struct in the SAP context is no longer referenced, so remove
it.

Change-Id: If4a30626913fdacb751a434458a2e3918665a352
CRs-Fixed: 2113553
2017-09-20 22:58:28 -07:00
snandini
3ee375c575 Release 5.2.0.44L
Release 5.2.0.44L

Change-Id: Ie95b726bb3534c6f751fbadc3431184d98e723bc
CRs-Fixed: 774533
2017-09-20 22:09:18 -07:00
Jeff Johnson
6c8e31255c qcacld-3.0: Remove SapGlobalLock infrastructure
Change "qcacld-3.0: Remove obsolete wlansap_get_wps_state()" removed
the last consumer of the SapGlobalLock infrastructure. Since this
infrastructure is now unused, remove it.

Change-Id: I4646a7796073b259351d8cff48a424ef8741c9cf
CRs-Fixed: 2113552
2017-09-20 22:09:17 -07:00
Mahesh Kumar Kalikot Veetil
ec1da142e7 qcacld-3.0: Fix interface name in logs
Some of the logs wrongly use dev->ifindex to print net device name. Fix
those prints with correct device name.

Change-Id: I0cd7cbadcc69cafa05207578b66a2e07ce9e0f4e
CRs-Fixed: 2113484
2017-09-20 22:09:14 -07:00
snandini
49b882b545 Release 5.2.0.44K
Release 5.2.0.44K

Change-Id: Ie4fd56cb2c58dc2a3def8a1319786869de019599
CRs-Fixed: 774533
2017-09-20 21:27:13 -07:00
Rajeev Kumar
7f28e8a30f qcacld-3.0: Add adapater validity check for get NUD stats command
Add adapter validity check for get NUD stats vendor command such that
after adapter down/close request is not sent down to FW over WMI which
can trigger FW assert.

Change-Id: Ia4809ce50f131d2a85e668681711d89c985203a0
CRs-Fixed: 2098149
2017-09-20 21:27:13 -07:00
Jeff Johnson
8b8d03d533 qcacld-3.0: Remove obsolete wlansap_get_wps_state()
Currently in hdd_hostapd_sap_event_cb() when processing the
eSAP_STA_ASSOC_EVENT and eSAP_STA_REASSOC_EVENT events a call is made
to wlansap_get_wps_state(). This is a legacy call inherited from a
version of the driver that supported in-driver WPS. But now that WPS
is handled by hostapd this functionality is obsolete and should be
removed.

Change-Id: Ia52d9554ed4b3a44726a4cac268eae77856cbd18
CRs-Fixed: 2113551
2017-09-20 21:27:10 -07:00
Zhang Qian
6339310b98 qcacld-3.0: Change policy for QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG
Change attribute type in policy to NLA_UNSPEC, so nla API will take
a more strict length check.

Change-Id: I9faf60702a9efba5e76fb1e82c7b020812687cad
CRs-Fixed: 2092378
2017-09-20 21:27:07 -07:00
snandini
bdf242ccb7 Release 5.2.0.44J
Release 5.2.0.44J

Change-Id: I6b2a199d78576cc8e88abe56db98a1a0ba05c023
CRs-Fixed: 774533
2017-09-20 19:56:55 -07:00
Vignesh Viswanathan
c018e98d72 qcacld-3.0: Add new ini for bad RSSI 2G to 5G roam offset
Add new WCNSS_qcom_cfg.ini item to configure offset from bad RSSI
threshold ini for 2G to 5G band roam. This offset is used to
calculate the RSSI to be used as trigger for device to roam from
2G to 5G band when it is connected to a bad RSSI 2G AP and a 5G AP
is available in the environment.

New ini added : roam_bad_rssi_thresh_offset_2g

Change-Id: If2285317d1d01bb2faae2cf1928ad7adae8204d4
CRs-Fixed: 2105894
2017-09-20 19:56:53 -07:00
Jeff Johnson
0f41e16b1e qcacld-3.0: Remove obsolete SAP WPSIE structs
struct sap_WPSIE_s, as well as the structs it contains, were inherited
from a prior version of the driver where SAP WPS was implemented in
the driver. Since SAP WPS is now handled by hostapd these structs are
unused, so remove them.

Change-Id: Iabdd7f3b83668cb203614353b4766fb0b40fbd05
CRs-Fixed: 2110167
2017-09-20 07:59:01 -07:00
snandini
46df41c0d2 Release 5.2.0.44I
Release 5.2.0.44I

Change-Id: I01918d90692c9e44a482bdcb87a609501e08a0c5
CRs-Fixed: 774533
2017-09-20 06:22:07 -07:00
Anurag Chouhan
3920c0f714 qcacld-3.0: Add Vendor command to set/get NUD debug stats
Add vendor commands to set/reset and get NUD debug stats
from firmware.

Change-Id: I773c04bb3f7c6d5ed28528cf2174b3d63de57d98
CRs-Fixed: 2011456
2017-09-20 06:22:06 -07:00
Jeff Johnson
0a6453843c qcacld-3.0: pmo: Replace instances of unadorned %p
Replace instances of unadorned %p in components/pmo.

Change-Id: I771a66f98fafa38f77034a854c56422b535c6936
CRs-Fixed: 2100997
2017-09-20 06:22:03 -07:00
Jeff Johnson
16caea59fb qcacld-3.0: bmi: Replace instances of unadorned %p
Replace instances of unadorned %p in core/bmi.

Change-Id: I5dfdaa536da2c46d6180f74857e7518198bb43f7
CRs-Fixed: 2100997
2017-09-20 06:22:00 -07:00
Jeff Johnson
36e74c4212 qcacld-3.0: hdd: Replace instances of unadorned %p
Replace instances of unadorned %p in core/hdd.

Change-Id: I32b89aaf6a8b1ca3177e0c1cb5cec5fbc5f5294a
CRs-Fixed: 2100997
2017-09-20 06:21:58 -07:00
Jeff Johnson
359e679fb1 qcacld-3.0: pld: Replace instances of unadorned %p
Replace instances of unadorned %p in core/pld.

Change-Id: I949474a148429d14587864e6fa3ce5c71d2ceb92
CRs-Fixed: 2100997
2017-09-20 06:21:55 -07:00
hqu
16d6e08812 qcacld-3.0: Calculate supported rates according to different case
Fix the regression issue introduced by change
"Change-Id: Ica336398865a8b5e16297e4555dbb7de5e79567e".
The issue is that it will always include driver default rates.

In some case it only needs to calculate supported rates from hostapd.conf
file. Define ini item gChanSwitchHostapdRateEnabled to configure supported
rates calculated from hostapd.conf file or driver default rates when doing
SAP channel switch.

Change-Id: I45eeea5134dd80929bdd1f61246bdc66e1857e22
CRs-fixed: 2103714
2017-09-20 06:21:53 -07:00
snandini
a0e5b59824 Release 5.2.0.44H
Release 5.2.0.44H

Change-Id: I7d5194e017b5ec0625d2331e5d5842181fb3759b
CRs-Fixed: 774533
2017-09-20 04:40:26 -07:00
Varun Reddy Yeturu
81d0b373f3 qcacld-3.0: Check for valid pdev in wma_wait_tx_complete
Check for the validity of the pdev in wma_wait_tx_complete
before using it.

Change-Id: I3a98b4092aff42ea9c92490488cba5960b8e3b58
CRs-Fixed: 2111293
2017-09-20 04:40:26 -07:00
hqu
3c4ed3d9bd qcacld-3.0: Allow multi beacon interval in concurrent AP cases
qcacld-2.0 to qcacld-3.0 propagation

Current driver implementation doesn't support the multi beacon
interval in case concurrent AP's are operating on the same
channel. A new parameter 'beacon_int_min_gcd' is added in the
kernel to support the multi beacon interval.

Updating parameter 'beacon_int_min_gcd' to support multi beacon
interval. Related changs are
"Change-Id: I997059f0cad77b914a1296ffe7f1a51a511adac2" and
"Change-Id: Ibd2557080521276aa86a83089dfaa9b445de05af".

Change-Id: Iaa1bf7b7ead05bb400fbd8e28ef3fc1309c6b567
CRs-Fixed: 2111272
2017-09-20 04:40:22 -07:00
Himanshu Agarwal
c422ca7c04 qcacld-3.0: Copy the contents of auth frame properly
Copy the contents of auth frame in a proper manner
in lim_send_auth_mgmt_frame().

Change-Id: I5197634e36fa5b4344fc71fc22e1de6a2147744d
CRS-Fixed: 2112170
2017-09-20 04:40:20 -07:00