Commit Graph

848 Commits

Author SHA1 Message Date
Varun Reddy Yeturu
4204eed710 qcacld-3.0: Isolate roaming timers into a separate file
Move all the roaming related timers into a separate file
for easy maintenance and management across different projects

CRs-Fixed: 978905
Change-Id: I3bdbf13d9f962af36d74837bf50be7c9a93e824e
2016-04-17 18:09:59 -07:00
Varun Reddy Yeturu
b6ef113b4b qcacld-3.0: Move the code related to sending roam frames to a separate file
Move the routines which help in building and sending the roaming
related management frames into a separate file for easy
maintenance across different projects

CRs-Fixed: 978905
Change-Id: If8e5cbdabef7747e58359961c3b13c577eb3b777
2016-04-17 18:09:54 -07:00
Varun Reddy Yeturu
99ff7f0b1a qcacld-3.0: Move Reassociation utils into a separate file
Move all the reassociation related utilities to a separate
file for easy maintenance across different projects

CRs-Fixed: 978905
Change-Id: I86809ac48659dc91222624fec616bab6533d75dd
2016-04-17 18:09:50 -07:00
Varun Reddy Yeturu
c3843188c5 qcacld-3.0: Move Host based roaming MLM code into a separate file
Separate the host based roaming MLM code into a separate file
to maintain it easily across different projects

CRs-Fixed: 978905
Change-Id: I1fad25ffbaa49bb2380c32ca9612ad46e3bca65c
2016-04-17 18:09:46 -07:00
Varun Reddy Yeturu
dbbb9919e9 qcacld-3.0: Isolate the pre-authentication code into a new file
Move all the pre-authentication related code in LIM to
a separate file so that it is feature specific and easy to
maintain across different projects

CRs-Fixed: 978905
Change-Id: I3ca443139b974b25be8121fd6df040d858693708
2016-04-17 18:09:42 -07:00
Varun Reddy Yeturu
32de0e4137 qcacld-3.0: Isolate roaming related timers
Create separate routines for all the host roaming related
timers and hence they can be compiled out if roaming feature
is not needed

CRs-Fixed: 978905
Change-Id: I29f99a075c72d877fc97f760449e3421ebd64916
2016-04-17 18:09:37 -07:00
Varun Reddy Yeturu
0e3989af45 qcacld-3.0: Remove WLAN_VOWIFI_DEBUG and cleanup logging
Feature WLAN_VOWIFI_DEBUG is not defined. Hence remove it.
Also cleanup the logging.

CRs-Fixed: 960105
Change-Id: I76d83d5d5c93aa7e4669a73c0d3300ed5b727bb1
2016-04-17 18:09:24 -07:00
Houston Hoffman
57d10c2115 qcacld-3.0: Make CONFIG_ICNSS set the bus to SNOC
Currently HIF_PCI and snoc are not supported at the same time.
Bus should be set to snoc when CONFIG_ICNSS is defined.

Change-Id: I900cb70136a9be5406df05d06419e57ca0fa71be
CRs-Fixed: 989686
2016-04-17 18:09:05 -07:00
Satish Singh
36ae57e9b4 Release 5.1.0.8G
Release 5.1.0.8G

Change-Id: I2fc70ba6ced542a8791254a18871c8d8fc1c4fe3
CRs-Fixed: 688141
2016-04-17 18:08:58 -07:00
Dhanashri Atre
fa2cfa1085 qcacld-3.0: Revert "qcacld-3.0: Add debug print for EAPOL msg"
Revert Change-Id: I1eb4f9dac6520b1ce00cdfc3e0fcef721ae498d6

This change is causing a regression on the UDP SAP -> STA
throughput.

CRs-Fixed: 990954
Change-Id: I09b8b61e70eddc2a85a6b22a186cc2eef0f8510f
2016-04-17 18:08:49 -07:00
Komal Seelam
4c2ed0798f qcacld-3.0: Clean up mlm states during heart beat failure
During Heart Beat failures, the mlm states are not cleared properly
which resulted in stability issues. Fix it by setting the mlm
states properly during heart beat failure.

Change-Id: Ib54a29758ad31fa95726a59a7118b11931b49970
CRs-Fixed: 967796
2016-04-17 18:08:17 -07:00
Chandrasekaran, Manishekar
3e6b687e3a qcacld-3.0: Add Kconfig entry to control MCC to SCC switch logic
Add Kconfig entry to control the MCC to SCC switch logic so that
the feature can be enabled when part of a built-in kernel.

Change-Id: I8a4297e245b2be1b1cca81cc10bdccdfd34f8941
CRs-Fixed: 986079
2016-04-17 18:08:10 -07:00
Sandeep Puligilla
1d9a8d8cc1 qcacld-3.0: CL 1469405 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

WMI scan flag to enable strict passive scan on passive chns
Provide initial Hawkeye HW header files.

Change-Id: I31b3244441857c812dc208d4ea2ce66d65c4fec3
CRs-Fixed: 865207
2016-04-17 18:08:05 -07:00
Sandeep Puligilla
b6ddc26740 qcacld-3.0: CL 1469344 - update fw common interface files
propagation from qcacld-2.0 to qcacld-3.0

bpf_instruction_size parameter is added in wmi_resource_config

Change-Id: I188395cefc997052d7e4cd020a41e6ef788e82f3
CRs-Fixed: 865207
2016-04-17 18:07:58 -07:00
Sandeep Puligilla
ff55fecd91 qcacld-3.0: CL 1469034 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation

add a wmi command to enable/disable channel
avoidance report event from firmware

Change-Id: Ic84728b315b4729470238098a91ef6bb629b3f7b
CRs-Fixed: 865207
2016-04-17 18:07:48 -07:00
Srinivas Girigowda
18dcf3d532 qcacld-3.0: Remove csr_neighbor_roam_is_ese_assoc()
There are two utility functions to check if the association
is ESE or not. csr_neighbor_roam_is_ese_assoc() and
csr_roam_is_ese_assoc().

Both serves the same purpose, hence remove csr_neighbor_roam_is_ese_assoc()
and use csr_roam_is_ese_assoc().

Change-Id: I857f9c16eb73a4b0f72e0a622be47ab756fb70f4
CRs-Fixed: 950762
2016-04-17 18:07:44 -07:00
Srinivas Girigowda
d0bae5f2dc qcacld-3.0: Remove obsolete csr_flush_roam_scan_roam_channel_list
Remove obsolete csr_flush_roam_scan_roam_channel_list().

Change-Id: I535e4e5ce2c934451e0c94b4da825163138fe3b0
CRs-Fixed: 950762
2016-04-17 18:07:39 -07:00
Srinivas Girigowda
515a9efb36 qcacld-3.0: Remove FEATURE_WLAN_ESE_UPLOAD compile macro
At present and going forward ESE and ESE_UPLOAD will be the
de-facto approach supporting ESE. Hence there is no need of two compile macros
FEATURE_WLAN_ESE and FEATURE_WLAN_ESE_UPLOAD.

Instead Remove FEATURE_WLAN_ESE_UPLOAD and Keep only FEATURE_WLAN_ESE.

Change-Id: If1a04e95211a0d639db7b60a57a6d5f215d26f4e
CRs-Fixed: 950762
2016-04-17 18:07:30 -07:00
Nirav Shah
89223f7e36 qcacld-3.0: Update netif queue timestamp to avoid watchdog
Update netif queue timestamp while stopping queues
to avoid NETDEV watchdog

CRs-Fixed: 983687
Change-Id: Ifb0777001fead64836f1ea38eb8a3becc47ecac2
2016-04-17 18:07:07 -07:00
Kiran Kumar Lokere
13644679a2 qcacld-3.0: Move the channel width enum to cds
Currently channel width has different enum values in
different modules. Move the channel width enum definition
to CDS to maintain single channel width enum value in
the driver

Change-Id: I6a46d0c02546263080a15a3ec7c52486fc51e98e
CRs-Fixed: 983914
2016-04-17 18:06:59 -07:00
Rajeev Kumar
0a9901ba8c qcacld-3.0: Do not allow crash_inject command in FTM mode
- Subsystem restart is not supported in FTM mode
- Do not allow force crash inject command to test SSR in FTM mode

Change-Id: I743aba2082af5537e627b678b159ba9985986e07
CRs-Fixed: 954374
2016-04-17 18:06:52 -07:00
Mahesh A Saptasagar
d639dde9ec qcacld 3.0: Validate WPA and RSN IE for valid length
qcacld-2.0 to qcacld-3.0 propagation

Return failure to applications if genie ioctl is invoked to configure
WPS/WPA/RSN IEs with arguments of improper length.

Change-Id: I2e034ef9f2537922be35d46ce266e6b99dab7bb6
CRs-Fixed: 931451
2016-04-17 18:06:38 -07:00
Mahesh A Saptasagar
4871cdbc01 qcacld 3.0: Validate ioctls for valid input length
qcacld-2.0 to qcacld-3.0 propagation

Return failure to applications if ioctl is invoked with arguments
of improper length.

Change-Id: I01589f37996510ee130485ef43e1f36811692e28
CRs-Fixed: 930542
2016-04-17 18:06:33 -07:00
Amar Singhal
6842e8f33a qcacld-3.0: Fix set-band operation
Currently, in regulatory callback, we do not update channels
that are out-of-band. For example, if the current band is set
to 2.4 GHz, we do not update channels of 5 GHZ band. Now, if the
band gets changed, the channel list goes wrong. Fix this issue by
updating all the channels and then calling
wlan_hdd_cfg80211_update_band to update wiphy for the current
in-band channels.

Change-Id: If6d6fee01c7a7d6b2aa0f7d3acb862decce0819e
CRs-Fixed: 978660
2016-04-17 18:06:24 -07:00
Amar Singhal
a7bb01b460 qcacld-3.0: Regdomain kernel-doc and other changes
Add kernel documentation for regdomain data structures. Also
rename some of the data structures to better names.

Change-Id: Iae26079ae8a7f06e2670594694ae36c2c2a0a524
CRs-Fixed: 961806
2016-04-17 18:06:17 -07:00
Amar Singhal
c3c490cd0f qcacld-3.0: Correct the country code definitions
Correct the definitions from country code to regulatory domains
mappings. Add the missing countries to regulatory domain mappings.
Also streamline the definitions of regulatory domain pairs and
regulatory domains.

Change-Id: I0ff5a13425c6b5d4671864745f6b44a0d16b78aa
CRs-Fixed: 961806
2016-04-17 18:06:10 -07:00
Amar Singhal
0f5dc48125 qcacld-3.0: Add kernel-doc for regdomain functions
Add kernel documentation for regdomain functions and data structures.

Change-Id: I438c81892216354d9fbda6947fabba031ddcc854
CRs-Fixed: 961806
2016-04-17 18:06:00 -07:00
Amar Singhal
2299511d9f qcacld-3.0: Make regdomain code linux style
Fix the data structures of regdomain code; to make it linux style.

Change-Id: If8123370f4ce370adba1a49636b42449c2644144
CRs-Fixed: 961806
2016-04-17 18:05:45 -07:00
Naveen Rawat
3b6068c457 qcacld-3.0: Remove the file cds_regdomain_common.h
Data structures defined in cds_regdomain_common.h are similar
to those defined in cds_regdomain.h. Therefore remove the file.

Change-Id: I929b03058e9441e4a652314789cf91dbd94d0329
CRs-Fixed: 961806
2016-04-17 18:05:22 -07:00
Abhishek Singh
d86d983a20 qcacld-3.0: Remove roam cmd from roam pending list is case of disconnect
qcacld-2.0 to qcacld-3.0 propagation.

If back to back connect and disconnect are issued by supplicant,
disconnect ends up queued at the head of roam/sme pending cmd
queue due to its high priority. Thus sme processes the disconnect
command before the connect command making sme and hdd out of sync.

Now if unload is triggered, with hdd in disconnected state,
disconnect is dropped in hdd. Thus no DEL BSS is sent before
HAL STOP leading to firmware crash.

This change removes the roam connect cmd from roam/sme pending list
when disconnect is issued by supplicant.

Change-Id: I34f192b3d549c6179ddc49bba376dbc007efa2c2
CRs-Fixed: 955178
2016-04-17 18:04:58 -07:00
Abhishek Singh
79e7750d56 qcacld-3.0: In case ADD STA fails, clear IBSS sta entry properly
qcacld-2.0 to qcacld-3.0 propagation.

If ADD STA fails for IBSS, sta entry is not cleared from dphHashTable
and gLimIbssPeerList. Thus if same IBSS peer tries to connect again
it fails to connect as driver assume that peer is already connected
as its entry is present in gLimIbssPeerList.

With this change IBSS sta entry is cleared in case ADD STA fails.

Change-Id: I6cc778cf74d91952dfd239d4ca62362b8e95467c
CRs-Fixed: 944480
2016-04-17 18:04:53 -07:00
Abhishek Singh
7d3bc3e500 qcacld-3.0: Retry Auth from host in case ack is not received for Auth
qcacld-2.0 to qcacld-3.0 propagation

In few APs with power save feature, if no STA is connected, the AP
does not respond to the Auth from STA, unless Auth is sent near to
the AP's CT window. With current implementation host does not
retry the auth and wait for the auth timeout to happen before
returning connect failure.

With this change Host will retry the Auth frame with interval of
3/5 * beacon interval, if no Ack is received for the frame,
until the auth timeout happens.

This increases the probability for the Auth to be received by AP near
to its beacon and thus initiate the connection.

CRs-Fixed: 816177
Change-Id: I51a6032f910b32eb91d67cb078e6434016ae8650
2016-04-17 18:04:38 -07:00
Krishna Kumaar Natarajan
0f25bbb0b3 qcacld-3.0: Fix layering violation in wma_get_vht_ch_width
Fix layering violation in wma_get_vht_ch_width by using macros
defined in WMI instead of kernel defined macros.

Use WMI_VHT_CAP_CH_WIDTH_160MHZ and WMI_VHT_CAP_CH_WIDTH_80P80_160MHZ
instead of kernel defined macros.

Change-Id: I7d389c21d8c16fd9528cd06d98f2ec84b84aadf7
CRs-Fixed: 985099
2016-04-17 18:04:34 -07:00
Krishna Kumaar Natarajan
062d054549 qcacld-3.0: Update dot11f.frms for new radio measurement types
Update dot11f.frms to decode LCI and Fine Time Measurement in
incoming Radio Measurement frames.

Currently we do not have these new types supported leading to
incorrect frame parsing. Adding these types make sure that
incoming radio measurement request frames are unpacked correctly.

Change-Id: I542bb2b782fed144702c372cbfc314c666c72f53
CRs-Fixed: 980863
2016-04-17 18:04:27 -07:00
Naveen Rawat
206e2ac787 qcacld-3.0: Reindent csr_validate_mcc_beacon_interval
This patch is to reindent csr_validate_mcc_beacon_interval

Change-Id: I0e9c420aab7a2f5534e8acc52d09a27693194073
CRs-Fixed: 985273
2016-04-17 18:03:56 -07:00
Krunal Soni
0acfdcd696 qcacld-3.0: Fix incorrect struct assignment & HT-ie addition
Fix incorrect struct assignment while handling join request in
SME module.

Fix not to add HT ie in outgoing P2P action frames.

Change-Id: Ic49ca5ca3171be50a16a16281ae68edb35449605
CRs-Fixed: 985273
2016-04-17 18:02:01 -07:00
Krunal Soni
fb84cbd911 qcacld-3.0: (part-8)Replace enum device_mode to tQDF_ADAPTER_MODE
Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: Ic3e7c2944d1b8d66042398c57eb307ab30223524
CRs-Fixed: 985273
2016-04-17 18:01:56 -07:00
Krunal Soni
9b04c9b8dd qcacld-3.0: (part-7)Replace enum device_mode to tQDF_ADAPTER_MODE
Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: If408976d5554a50a0023c2a49f80876911fdf1d8
CRs-Fixed: 985273
2016-04-17 18:01:51 -07:00
Krunal Soni
056ea0ffde qcacld-3.0: (part-6)Replace enum device_mode to tQDF_ADAPTER_MODE
Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: Ia98c4406992c1065850dc70ab3b33c49216d0a24
CRs-Fixed: 985273
2016-04-17 18:01:47 -07:00
Krunal Soni
b4326f27d9 qcacld-3.0: (part-5)Replace enum device_mode to tQDF_ADAPTER_MODE
Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: I62a36b3e4d7f92a6d8b15648645035c6ea7735c2
CRs-Fixed: 985273
2016-04-17 18:01:43 -07:00
Krunal Soni
a368784fee qcacld-3.0: (part-4)Replace enum device_mode to tQDF_ADAPTER_MODE
Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: Iaa945f64dd9f90f6abc0b1716b176fce0971ba71
CRs-Fixed: 985273
2016-04-17 18:01:39 -07:00
Krunal Soni
f07bb38727 qcacld-3.0: (part-3)Replace enum device_mode to tCDF_ADAPTER_MODE
Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: I963d1d7f854ecdfe8c301cc5c8fc554ce8df4e35
CRs-Fixed: 985273
2016-04-17 18:01:29 -07:00
Krunal Soni
be766b01b8 qcacld-3.0: (part-2)Replace enum device_mode to tQDF_ADAPTER_MODE
Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: If20617734c5f6f71cef6b85b86d907f8be9d39f9
CRs-Fixed: 985273
2016-04-17 18:01:19 -07:00
Krunal Soni
276241e3d2 qcacld-3.0: (part-1)Replace enum device_mode to tQDF_ADAPTER_MODE
Instead of using two different enums for setting adapter mode,
combined them to make only one set of enum.

Change-Id: Ie41244becec39fe1f5f24a721f5b24e137e7fd26
CRs-Fixed: 985273
2016-04-17 18:01:12 -07:00
Satish Singh
7624902237 Release 5.1.0.7G
Release 5.1.0.7G

Change-Id: Ic169127937315b8f84983b656fbf97ff824234d7
CRs-Fixed: 688141
2016-04-17 18:00:44 -07:00
Archana Ramachandran
28ab41212d qcacld-3.0: Fix memory leak in protocol stack due to cdf_mem_free removal
Fix memory leak in protocol stack due to cdf_mem_free removal.

CRs-Fixed: 987178
Change-Id: If2aa813322cbfea68001862098e6c0b18e6921ae
2016-04-17 18:00:34 -07:00
Rajeev Kumar
dd4dd08b2c qcacld-3.0: Fix deadlock in hdd_adapter_lock usage
hdd_adapter_lock is acquired from MC thread and hif_napi soft IRQ
context so it should be acquired using spin_lock_bh such that when
MC thread is holding the lock soft IRQ can't pre-empt it and lead
to deadlock

Change-Id: Iee4a4905bf7cc09cba9bd26f416d505eb47a5c96
CRs-Fixed: 981886
2016-04-17 18:00:21 -07:00
Manjunathappa Prakash
7e16b0a68f qcacld-3.0: Use fastpath Tx entry point with flowcontrol V2
Use common entry point ol_tx_ll_wrapper and use fastpath Tx if enabled.

Change-Id: I3a19fd6af43ab10eb5d8dd2754134a8dbc3783ab
CRs-Fixed: 987182
2016-04-17 17:59:18 -07:00
Amar Singhal
90aaa6ae49 qcacld-3.0: Fix setting vht160/80p80 driver capablities.
We dont need to set both 80p80 and 160 mhz driver capabilties
in driver. Since 160 is a subset of 80p80 capability; we need to
set only one

Change-Id: I20ea254523bade3ad93e49added35d4bdc1d0509
CRs-Fixed: 985763
2016-04-17 17:56:05 -07:00
Peng Xu
242002c759 qcacld-3.0: Increase connection update timeout value
Current connection update timeout value for DBS concurrency case
is 500ms, which is not long enough as there are other WMI messages
need to be processed by master thread. Increase the timeout value
to 1000ms to ensure the set hardware mode WMI message has enough
time to be processed

Change-Id: Idecf2e830a7a37258787eb4f8c5f117cbe2a825b
CRs-fixed: 983174
2016-04-17 17:55:53 -07:00