Commit Graph

6739 Commits

Author SHA1 Message Date
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
snandini
e1c8d9f953 Release 5.2.0.44G
Release 5.2.0.44G

Change-Id: Ib79fff45fe20fc2a597508c3d0f6d8ed158a6ecc
CRs-Fixed: 774533
2017-09-20 03:01:43 -07:00
Amar Singhal
5238567d80 qcacld-3.0: Change sequence of programming dfs region
At init time, program DFS region before programming the init
channel list. Programming DFS region would also initialize the
channel map.

CRs-Fixed: 2104133
Change-Id: I0ab3607d020086d226a99814dada5ac820880f1f
2017-09-20 03:01:43 -07:00
snandini
456883b645 Release 5.2.0.44F
Release 5.2.0.44F

Change-Id: I0622a20f733a637ec39fa0779fc6a8b72801855a
CRs-Fixed: 774533
2017-09-19 15:52:54 -07:00
Ravi Joshi
a307f63059 qcacld-3.0: Enable monitor mode through con_mode_monitor
Enable napier monitor mode through con_mode_monitor
module parameter passed during the driver load.

Change-Id: I85c7d8fad2c8c56f87e2d6f076cd573fe5953269
CRs-Fixed: 2110208
2017-09-19 15:52:54 -07:00
snandini
a755ed9a36 Release 5.2.0.44E
Release 5.2.0.44E

Change-Id: I9603a53832686cf2d7679166c85290294ce8cba0
CRs-Fixed: 774533
2017-09-19 09:59:39 -07:00
Wu Gao
478282a8d0 qcacld-3.0: Check radio id for FW event
In Rome platform, it use invalid radio id in FW event
WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID and cause crash. So check
radio id when handling this event.

Change-Id: Id720ca94ef496ea883f5ba1848fb4e28af57002f
CRs-Fixed: 2112322
2017-09-19 09:59:37 -07:00
snandini
f4c2d4e4db Release 5.2.0.44D
Release 5.2.0.44D

Change-Id: I3a058972ba39ed569437af5e12721812188da9cf
CRs-Fixed: 774533
2017-09-19 04:18:35 -07:00
Jiachao Wu
712d4fd6a6 qcacld-3.0: Send beacon tx rate to firmware
Add data structures to save beacon tx rate.
The beacon data rate is multiples of 100 Kbps.
Firmware expects the data rate in the form of hw rate codes.
So convert the data rates to hw rate code.
And send it to firmware.

Change-Id: Ia39fd4c14defa729f75f2c45748fe5b04b909647
CRs-Fixed: 2099052
2017-09-19 04:18:34 -07:00
snandini
2cc96b1146 Release 5.2.0.44C
Release 5.2.0.44C

Change-Id: I6c28fb1f9c8d6ebd7419d9c199a1deb22508f239
CRs-Fixed: 774533
2017-09-19 02:28:37 -07:00
SaidiReddy Yenuga
f098d8ea2e qcacld-3.0: Trim extn capability to max supported in change station
qcacld-2.0 to qcacld-3.0 Propagation.

extn capabilities can be controlled by user, which can
be sent greater than the max supported value. This results
in stack overflow in change station command.

Add check to validate extn capability param given by user
and if it exceeds max supported value, set it to max supported
value.

CRs-Fixed: 2076664
Change-Id: I531799dd06c41069e85ad969de6182363dbf9f05
2017-09-19 02:28:36 -07:00
SaidiReddy Yenuga
cc733aff70 qcacld-3.0: Add ini param to control the crash inject
qcacld-2.0 to qcacld-3.0 propagation

Currently the crash can be injected by iwpriv command and FW
gets crashed.
Changes are done to add the gEnableCrashInject ini parameter

1) This ini param is disabled by default.
2) If this param is disabled the crash inject is ignored.

Change-Id: I7e908be1e37090a9d343dc04411fe387f776a937
CRs-Fixed: 864932
2017-09-19 02:28:33 -07:00
Jeff Johnson
f1cd3c7d40 qcacld-3.0: Replace typedef ptSapContext
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The ptSapContext typedef does not
meet any of those criteria, so replace it.

Change-Id: Ia08bea35b7c0d3b3dfad4641c1c79a7c0990cd8d
CRs-Fixed: 2109993
2017-09-19 02:28:30 -07:00
Jeff Johnson
49c7a1465a qcacld-3.0: Remove wlansap_open() p_cds_gctx parameter
Currently wlansap_open() takes a p_cds_gctx parameter. At one time
this was needed, but that is no longer the case, so remove this unused
parameter.

Change-Id: Ie110b3cee9898233fb921aaab223caa4cf93de4e
CRs-Fixed: 2109961
2017-09-19 02:28:28 -07:00
Jeff Johnson
6816303da2 qcacld-3.0: Replace typedef tSapContext
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSapContext typedef does not
meet any of those criteria, so replace it.

Change-Id: If237edee7638c1c6b35413312cb3dd934554431a
CRs-Fixed: 2109960
2017-09-19 02:28:25 -07:00
Jeff Johnson
d0337e0f44 qcacld-3.0: Rename struct sSapContext
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct sSapContext to align with the
Coding Style. The associated tSapContext and ptSapContext typedefs
will be cleaned up as a subquent effort.

Change-Id: I83962e1c574491039597559fb8b16f3339d41fbd
CRs-Fixed: 2109959
2017-09-19 02:28:22 -07:00
snandini
78c458ac7f Release 5.2.0.44B
Release 5.2.0.44B

Change-Id: I629406eefc4d5e317bf70660bc60aea8d15ac1fd
CRs-Fixed: 774533
2017-09-19 00:18:03 -07:00
Jeff Johnson
ef20675305 qcacld-3.0: Remove p_cds_gctx from struct sSapContext
The p_cds_gctx field in struct sSapContext is not used, so remove it.

Change-Id: I9eb6f651a359bf12f23ec094887ca308c834bae1
CRs-Fixed: 2109957
2017-09-19 00:18:03 -07:00
Jeff Johnson
3023b1e559 qcacld-3.0: Clean up csr_roam_stats_rsp_processor()
csr_roam_stats_rsp_processor() calls cds_get_global_context() but then
doesn't do anything with the result, so remove the unnecessary call.

Change-Id: Ic47dbf971d1eaea4c7c33ff62f9bfb848d9d654b
CRs-Fixed: 2109956
2017-09-19 00:18:00 -07:00
Jeff Johnson
c0db38437e qcacld-3.0: Remove unused CDS_GET_HAL_CB() parameter
Macro CDS_GET_HAL_CB() currently takes a ctx parameter. At one time
cds_get_context() needed a pointer to the global context, and hence
the reason for the parameter. But now that cds_get_context() no longer
needs the global context, remove the parameter from the macro. This is
a precursor to removing the p_cds_gctx from the SAP config.

Change-Id: Ic75bab55fd8b87710aee99b7e2d3783361dc3d87
CRs-Fixed: 2109955
2017-09-19 00:17:57 -07:00
Sandeep Puligilla
344d725f60 qcacld-3.0: Remove legacy scan for ssid logic
Remove legacy scan for ssid logic

Change-Id: I87b2b2a1b284d72e6d6c8d26303ce02b80c0b8b2
CRs-Fixed: 2101353
2017-09-19 00:17:55 -07:00
Sandeep Puligilla
d698bf5328 qcacld-3.0: Remove legacy scan event handling
Remove legacy scan event handling
in the WMA and LIM.

Change-Id: Ibeb6f99335b4e745335d5968791d9e9187df47f7
CRs-Fixed: 2101353
2017-09-19 00:17:52 -07:00
snandini
056b97bcb3 Release 5.2.0.44A
Release 5.2.0.44A

Change-Id: I6fc30a4e039a4001df1d70aca52da1edb6747c23
CRs-Fixed: 774533
2017-09-18 20:27:55 -07:00
Varun Reddy Yeturu
5df6cc9977 qcacld-3.0: Address camel case coding style in hdd_mawc_cfg_log
Modify pHddCtx to hdd_ctx to avoid camel case coding style
as per the coding guidelines

Change-Id: I55767e0efdd803b3a8bf2bc7c52c96bbdc6d65bd
CRs-Fixed: 2111749
2017-09-18 20:27:55 -07:00
Varun Reddy Yeturu
faad37e33b qcacld-3.0: Introduce configuration parameters for bad RSSI roaming
Introduce the below WCNSS_qcom_cfg.ini items to configure
for bad RSSI roaming. These parameters would be used when
the device is connected to an AP with weak signal and has
to roam to a better AP if it is stationary but has found
some other better AP in the vicinity

roam_bg_scan_bad_rssi_thresh:
If the DUT is connected to an AP with weak signal, then the bad RSSI
threshold will be used as an opportunity to use the scan results
from other scan clients and try to roam if there is a better AP
available in the environment.

roam_bg_scan_client_bitmap:
This bitmap is used to define the client scans that need to be used
by the roaming module to perform a background roaming.

Change-Id: I3b9f737ea389d35f8be173ce83b2237c2375fb88
CRs-Fixed: 2082904
2017-09-18 20:27:52 -07:00
Naveen Rawat
08db88f684 qcacld-3.0: Cleanup get IE pointer from out, eid or ext_id APIs
Cleanup duplicate APIs for get ie pointer from EID or OUI or EXT_ID
and use wlan_utils exposed by qcacmn.

Change-Id: Iacbf041c9c49b2aedeffecba3427e9334cb70dcc
CRs-Fixed: 2105377
2017-09-18 20:27:49 -07:00
snandini
7623c082f6 Release 5.2.0.44
Release 5.2.0.44

Change-Id: Ib34f4a88d27f33d8f152767b338a0ebb16ef1a7c
CRs-Fixed: 774533
2017-09-18 19:38:34 -07:00
Dustin Brown
c81dd41399 qcacld-3.0: Fix net_device destructor for 4.12+ kernels
Linux kernel version 4.12 changes the way net_device destruction works.
Add conditional compilation to properly setup the net_device destruction
based on which version of the Linux kernel is being compiled against.

Change-Id: Idcc2186ff8593ed1467e7c0b08ece7c4dd70843a
CRs-Fixed: 2093367
2017-09-18 19:38:34 -07:00
Varun Reddy Yeturu
bba32e9055 qcacld-3.0: Introduce configuration parameters for NLO MAWC
Introduce the below WCNSS_qcom_cfg.ini configuration
parameters to MAWC based NLO.

mawc_nlo_enabled
mawc_nlo_exp_backoff_ratio
mawc_nlo_init_scan_interval
mawc_nlo_max_scan_interval

CRs-Fixed: 2081413
Change-Id: I7a9dbca080fb262750b420ca7265bc9583029271
2017-09-18 19:38:31 -07:00
Naveen Rawat
901d35302d qcacld-3.0: Enable WOW_PATTERN_MATCH_EVENT for NDI
Enable rx of NDP data packets in WOW mode by enabling
WOW_PATTERN_MATCH_EVENT for NDI vdev.

Change-Id: I4d5edfc91c23fd8cc277c005da7803690b5fe054
CRs-Fixed: 2069493
2017-09-18 19:38:29 -07:00
snandini
ad619df7cb Release 5.2.0.43Z
Release 5.2.0.43Z

Change-Id: I6e38416cd0e7312db949ff78ff9f39559d0ed448
CRs-Fixed: 774533
2017-09-18 15:37:28 -07:00
Kiran Kumar Lokere
52f4a84b2a qcacld-3.0: Reduce the max join attempts for connection
Limit the max join attempts to half of the command timeout value

Change-Id: I0448011ed17c6e90f0ac39c9de57bb32a14ecc31
CRs-Fixed: 2105407
2017-09-18 15:37:27 -07:00
Naveen Rawat
bec64d9137 qcacld-3.0: Fix SAP ACS logging
Fix misleading ACS logging that indicates best channel and final
channel selected are different.

Change-Id: I00a2a15fa9d709c3e78ebf580d599ec10deefb28
CRs-Fixed: 2105204
2017-09-18 15:37:25 -07:00
snandini
37fb05fc3d Release 5.2.0.43Y
Release 5.2.0.43Y

Change-Id: I10a2d1435323c04a3684d331ff49588e1541708b
CRs-Fixed: 774533
2017-09-18 12:22:05 -07:00
Vignesh Viswanathan
4126db0a47 qcacld-3.0: Fix out-of-bounds access in lim_process_action_vendor_specific
Currently in the function lim_process_action_vendor_specific, mem_cmp
is done on the received frame pointer without validating the frame_len
which could lead to out-of-bounds memory access if the frame_len is
not matching the size of action_hdr.

Add check to validate the frame_len with action_hdr size before doing
mem_cmp for the p2p oui.

Change-Id: I39329d1a9ef45614d3c617db11a7a7f5ec2aaaec
CRs-Fixed: 2101439
2017-09-18 12:21:57 -07:00
snandini
4dc66a5b8b Release 5.2.0.43X
Release 5.2.0.43X

Change-Id: I9b9c9458ad476f97ecd05b852a024d0d4ba65736
CRs-Fixed: 774533
2017-09-18 07:55:50 -07:00
bings
582830a20e qcacld-3.0: Enable preAlloc support for SKB buffers
Enable support to use SKB Buffers allocated during bootup for
low memory targets.

CRs-Fixed: 2106466
Change-Id: Ia55c38767804c5915b9d29d3c61bff236d12cacd
2017-09-18 07:55:49 -07:00
Padma, Santhosh Kumar
4b302b6791 qcacld-3.0: Add support for PNO scan in connected state
qcacld-2.0 to qcacld-3.0 propagation

Add changes to support PNO scan in connected state to find better Ap's
based on rssi threshold, band and rssi preference.

Change-Id: I17f1830c07821b577473fc2d8f50c0867572fe0c
CRs-Fixed: 2012702
2017-09-18 07:55:47 -07:00
Yu Wang
c9ef24f82a qcacld-3.0: use qdf_do_div to do 64 bit division
Use qdf_do_div() for 64 bit division, because '/'
can't be used for 64 bit division on arm32 platform.

Change-Id: I047334565643e695ac343a5da06e030d8e37d7e4
CRs-Fixed: 2110736
2017-09-18 07:55:45 -07:00