Commit Graph

6789 Commits

Author SHA1 Message Date
snandini
f1ee5ea5c9 Release 5.2.0.45
Release 5.2.0.45

Change-Id: I31b26aed1904a18f27d5b44f05e08b6df8326b9f
CRs-Fixed: 774533
2017-09-25 09:21:56 -07:00
Ashish Kumar Dhanotiya
52def21a51 qcacld-3.0: Pass frequency to ieee80211_get_channel API
In hdd_send_re_assoc_event api to get ieee80211_channel,
channel number is passed to ieee80211_get_channel kernel
API which expect frequency as an argument.

Pass frequency to ieee80211_get_channel API instead of
channel number.

CRs-fixed: 2053536
Change-Id: I216889d13252c56e817c4e09e77459cc38f8e9ec
2017-09-25 09:21:56 -07:00
snandini
5cc34cbaec Release 5.2.0.44Z
Release 5.2.0.44Z

Change-Id: I0b95aadcb445288d9ec62a776152ca2acd97b021
CRs-Fixed: 774533
2017-09-25 08:03:56 -07:00
Vignesh Viswanathan
2eb18748b8 qcacld-3.0: Clear FILS connection info only for STA Mode
Currently hdd_clear_fils_connection_info is called for all device
modes which is leading to crash in SAP mode due to illegal memory
access.

Add check to invoke hdd_clear_fils_connection_info only if the
device mode is STA.

Change-Id: Ia0e28c29d809865169c254b0d45013aad39e13d2
CRs-Fixed: 2106324
2017-09-25 08:03:56 -07:00
snandini
816aae75af Release 5.2.0.44Y
Release 5.2.0.44Y

Change-Id: I02b13a29b307290a9719dbf82ed1ecc849058d16
CRs-Fixed: 774533
2017-09-25 07:22:09 -07:00
Mukul Sharma
81d9f334e5 qcacld-3.0: Prevent memory leak in wlan_hdd_cfg80211_ocb_set_config
Currently, Host performs validation of NLA attribute
QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY twice
which leads to memory leak.

As a part of fix, Check for SET_CONFIG_CHANNEL_ARRAY
only once and free memory in error scenario.

Change-Id: I5c90c937682417b8181fda7d499908b9425d4c6a
CRs-Fixed: 2103954
2017-09-25 07:22:09 -07:00
Kabilan Kannan
c0e3d58f2a qcacld-3.0: Enable Napier TDLS data path
Enable TDLS datapath for napier platform

Change-Id: Id907ab327938a6a9099ce4d02fee49168139d089
CRs-Fixed: 2114824
2017-09-25 07:22:07 -07:00
Yeshwanth Sriram Guntuka
b90968f805 qcacld-3.0: Set ft_carrier_on to false on roam abort
When host receives roam sync indication from firmware
and if state in PE is not equal to eLIM_SME_LINK_EST_STATE
then roam is aborted. As part of eCSR_ROAM_FT_START,
ft_carrier_on flag is set to true but is not set to false
as part of roam abort handling in hdd_sme_roam_callback api.
This results in not sending subsequent connect result to nl.

Fix is to set ft_carrier_on to false on roam abort.

Change-Id: I43c65730fd439145c22dbf77b0deb47a1bf2ef45
CRs-Fixed: 2105072
2017-09-25 07:22:05 -07:00
Mukul Sharma
495df60861 qcacld-3.0: Prevent NS offload when active offload is disabled
Currently, Host configures the NS entries through vendor command
where host do not check the active offload is enable or disabled.
Hence it is not configuring according to active offload ini.
As part of fix, Cache the vendor command value and check whether
active offload is enabled or not before configuration to fwr.

Change-Id: Icb11e43198a75975418a2c9ed95d5f1df05ce0c5
CRs-fixed: 2105071
2017-09-25 07:22:03 -07:00
Zhu Jianmin
62e119634c qcacld-3.0: Avoid issue that NULL constant is dereferenced
NULL constant is unsuitable for sapEvent parameter since following
may be called:
        sapEventInit(sapEvent);
        vosStatus = sapFsm(sapContext, sapEvent);

Change-Id: I2ffc1be27f96bcbd793b2302e6c5920b5d30073b
CRs-Fixed: 2111290
2017-09-25 07:22:01 -07:00
Arunk Khandavalli
794fdfce82 qcacld-3.0: Print the macaddress after the LA is reset
Presently in the sta mode locally administered  is set and it
is not logged with new macaddress.

Print the macaddress of the STA once the LA bit is reset.

Change-Id: I5ab5c67c622723f32500bc07d815efb02bd834a7
CRs-Fixed: 2069219
2017-09-25 07:21:59 -07:00
snandini
d51e7260dc Release 5.2.0.44X
Release 5.2.0.44X

Change-Id: If88f06fb9b76165390d7fc200b7b6346805121d3
CRs-Fixed: 774533
2017-09-25 05:43:06 -07:00
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