Commit graph

1,378 commits

Author SHA1 Message Date
Hardik Kantilal Patel
e9b97ea6ea qcacld-3.0: Address 32 bit specific compilation issue
Fixing 32 bit compliation issues due to improper print
format type.

CRs-Fixed: 1043823
Change-Id: I22330c4598532142f2c84636e7c890dcb4435e70
2016-07-25 00:33:48 -07:00
Vishwajith Upendra
c0c2dfb0c6 Release 5.1.0.22E
Release 5.1.0.22E

Change-Id: I65d01685fffd5874b3421e3e81669b3224cf8e41
CRs-Fixed: 688141
2016-07-24 19:16:59 -07:00
Peng Xu
4225c15300 qcacld-3.0: Add vendor ID and fix WMI command parameters
For P2P listen offload feature, add vendor ID information in wiphy
vendor command structure, also add missing data length assignment when
sending WMI command to FW.

Change-Id: Ia889d794cae156814056aeefdfdf339429bf1401
CRs-fixed: 1040310
2016-07-24 19:16:58 -07:00
Peng Xu
d222096dc8 qcacld-3.0: Add vendor ID information in vendor command
Add vendor information in wiphy vendor command structure.

Change-Id: I240b5d3158bde068e490dc80c2fa6d282789284c
CRs-fixed: 1040310
2016-07-24 19:16:56 -07:00
Vishwajith Upendra
5e22c78ffd Release 5.1.0.22D
Release 5.1.0.22D

Change-Id: I5f48d165ebdd46d107cca29ec8d77fbd8809eaca
CRs-Fixed: 688141
2016-07-22 18:35:33 -07:00
Krishna Kumaar Natarajan
4b5513783a qcacld-3.0: Update target type definitions in fw common file
Update target type definitions in fw common file. This change
set will fix the mismatch between host driver and FW.

Change-Id: I570fd928e720e9f7ce982fe87da383669f8a9105
CRs-Fixed: 1044264
2016-07-22 18:35:32 -07:00
Jeff Johnson
615d4bbfff qcacld-3.0: Avoid NULL dereference in hdd_init_qdf_ctx()
Currently hdd_init_qdf_ctx() calls cds_get_context() to retrieve the
QDF Device context, and then writes into the context without
validating the pointer.  Add logic to validate the pointer before
using it.

Change-Id: Ib427d1348b3ff5b13689e24f69e4606f23ea767c
CRs-Fixed: 1042043
2016-07-21 07:59:23 -07:00
Jeff Johnson
e54e2ae247 qcacld-3.0: Prevent overread of UP to AC mapping table
Currently the User Priority (UP) returned by hdd_wmm_classify_pkt() is
used without any checks by hdd_get_queue_index() to lookup the Access
Category (AC) in the mapping table hdd_linux_up_to_ac_map[].  Although
the UP returned by hdd_wmm_classify_pkt() should be within the valid
range, for safety add an explicit check to prevent an overread of the
table.

Change-Id: Iacd8d97bcc7a3939cdb2469f6830adc2ffc24765
CRs-Fixed: 1041989
2016-07-21 07:59:14 -07:00
Vishwajith Upendra
74da41bcc2 Release 5.1.0.22C
Release 5.1.0.22C

Change-Id: I87f9c706dad7271b5f21579df71a644abc120257
CRs-Fixed: 688141
2016-07-20 10:44:17 -07:00
Anurag Chouhan
d939d3decd qcacld-3.0: Update correct authtype during connect
Currently the authtype is not getting updated properly in case
of wpa2psk security mode, this change will update the correct
auth type

Change-Id: I11d15457b375ed2803420cfd08070a7bbc181029
CRs-Fixed: 1044021
2016-07-20 07:22:58 -07:00
Nirav Shah
2048997252 qcacld-3.0: Changes to support wmi tx bundle completion
Changes to support wmi tx bundle completion.

Change-Id: I4c8d9b284d4616ce48b48f0a3424a03459dbefb0
CRs-fixed: 1023818
2016-07-20 03:29:50 -07:00
Manjunathappa Prakash
9efd05dcd1 qcacld-3.0: Enable LRO, NAPI, Fastpath
Enable LRO, NAPI and Fastpath.
Moving datapath features together at one place in INI.

Change-Id: I3996ce76a0fa386b5cb7eeb00548db9dea54d390
CRs-Fixed: 1035499
2016-07-19 18:18:27 -07:00
Manjunathappa Prakash
beeacb1071 qcacld-3.0: Kbuild: Enable LRO
Enable LRO. Depends on kernel LRO feature is enabled.

Change-Id: Idee37eb664046961c26d8619f7eb18c57ac0fb32
CRs-Fixed: 1035499
2016-07-19 18:18:26 -07:00
Krishna Kumaar Natarajan
36e5aa00be qcacld-3.0: Update handling of WOW packet buffer
Update handling of WOW packet buffer.

Change-Id: If3ba082bb862a7c9d81e9b9f619f805420c83860
CRs-Fixed: 1042616
2016-07-19 13:17:51 -07:00
Nitesh Shah
e5aa26be8b qcacld-3.0: CL 1546701 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Adding connect_ie interface for Roaming offload.

Change-Id: I8263688aec3895af57555a5db14d4459848c0cc5
CRs-fixed: 865207
2016-07-19 03:07:38 -07:00
Nitesh Shah
8cb6a3d20f qcacld-3.0: CL 1546483 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Add WMI command to set GPIO numbers that are used to wakeup host
and wakeup target.
Changes to disable dynamic bandwidth RTS.
Add swol_assist_enable field to WMI extwow_set_app_type1_params
cmd to enable IoT mode WMI enums for CCK and OFDM max tx rates.

Change-Id: I26873873d7a355c179babaa7cc56e187e9771c92
CRs-fixed: 865207
2016-07-19 03:07:36 -07:00
Krunal Soni
fd85ba612b qcacld-3.0: Fix assert in wma_rx_service_ready_ext_event API
In case of legacy/old platform, extended caps are not provided and
number of supported hw modes is expected to come as zero. Due to
bug in a code, driver is going ahead and try to allocated memory
with size of 0 bytes which is causing the assert.

Change-Id: I37adf5ba4e1b1100af06da0a37466a5531be5880
CRs-Fixed: 1040063
2016-07-18 12:28:11 -07:00
Manjunathappa Prakash
b86f626030 qcacld-3.0: Check for NULL adapter returned from open_interface
Add check for NULL adapter returned from open_interface.

Change-Id: I942dd046bdb402c7fa00d2726b8771a18efc2f22
CRs-Fixed: 1039491
2016-07-15 19:10:05 -07:00
Vishwajith Upendra
8ac9be9077 Release 5.1.0.22B
Release 5.1.0.22B

Change-Id: Icb3a8fd57f498f7d44fa48d6258e4a0ef99ff64e
CRs-Fixed: 688141
2016-07-15 16:14:41 -07:00
Kabilan Kannan
e7a00119ff qcacld-3.0: Teardown TDLS links when second vdev comes up
qcacld-2.0 to qcacld-3.0 propagation

Teardown all TDLS links before second VDEV comes up

Change-Id: I0561dcef8f9a3143f420c196d805adecadf0ab6c
CRs-Fixed: 951482
2016-07-15 13:11:22 -07:00
Arif Hussain
1969ec8bc9 qcacld-3.0: change dfs_radar_found to atomic variable
Instead of using separate lock to protect dfs_radar_found,
change variable itself to atomic.

Change-Id: If95e2ce5a0c837f36a92673312ea4d2fc7b96abe
CRs-Fixed: 1039447
2016-07-15 12:17:23 -07:00
Anurag Chouhan
96919486f6 qcacld-3.0: Add vendor command for extra BSS information
Add Vendor Commands to send BSS Information and
ASSOC failure to supplicant.

Change-Id: I5b64d9942a54d35eac0f08b4d8fbed9d1d66a504
CRs-Fixed: 1042226
2016-07-15 04:23:13 -07:00
Anurag Chouhan
5de8d17671 qcacld-3.0: Add BSS status caching
Add BSS status caching to get the BSS Information
when disconnect happens.

Change-Id: I41b74700b161277bc454d8bb8978f4e1e92faea8
CRs-Fixed: 1013475
2016-07-15 04:23:12 -07:00
Naveen Rawat
696a930c25 qcacld-3.0: Fix start BSS failure
In function csr_roam_join_handle_profile, add NULL pointer check for
"result" after call to csr_roam_select_bss rather than before
csr_roam_join_handle_profile, since it is called for BSS role as well.

Change-Id: I800891fd66d5c851537968515e43eadbe38a2ae8
CRs-Fixed: 1038237
2016-07-14 18:50:50 -07:00
Naveen Rawat
a395d25d53 qcacld-3.0: Fix NULL pointer dereference in csr_roam_join_next_bss
Add NULL pointer check for "result" after call to csr_roam_select_bss.
This function can return a NULL value for variable "result", which is
later dereference in the function csr_roam_join_handle_profile.

Change-Id: I5e1f017de49301a14b899692b888f7694e979bf1
CRs-Fixed: 1027725
2016-07-14 18:50:50 -07:00
Arif Hussain
fbf5068ddd qcacld-3.0: Fix uninitialised variable use
Initialize packet pointer with NULL to avoid wild pointer dereferencing.

Change-Id: Iff756659ed463e15796350d0a73486923b92e19f
CRs-Fixed: 1027693
2016-07-14 17:33:52 -07:00
Yuanyuan Liu
90fd18c141 qcacld-3.0: Fix null qdf_dev pointer in ramdump handler
Container_of returns invalid ol_ctx pointer which leads to a null
pointer of qdf_dev. Fix this by directly request qdf_dev pointer
from cds.

Change-Id: I08910bb798b7992d550c9e061eed04a9b6f140d1
CRs-Fixed: 1033518
2016-07-14 16:53:12 -07:00
Yuanyuan Liu
a1679b62b9 qcacld-3.0: Return correct failure code
Return correct failure code for pld_register_driver.

Change-Id: I2f441db9a817ffce9d278c4672a0f68476c11b5c
CRs-Fixed: 1039663
2016-07-14 16:07:27 -07:00
Vishwajith Upendra
037bbf6a0d Release 5.1.0.22A
Release 5.1.0.22A

Change-Id: I599796f0e1c018908f13f3be9aac7d688e7b12c2
CRs-Fixed: 688141
2016-07-14 13:26:56 -07:00
Varun Reddy Yeturu
823e9c2e0d qcacld-3.0: Fix incorrect channel list passed to firmware
Fix the occupied channel list that is being passed from CSR to
WMA to WMI to firmware.There is a conversion happening in
WMA from channel number to frequency which is the root of the
issue.

CRs-Fixed: 1039020
Change-Id: I8e10df6dd4d09b12ff700ab865f6722f4fbfaf8d
2016-07-14 12:36:08 -07:00
Rajeev Kumar
b6045f60c4 qcacld-3.0: Increase bus suspend/resume log levels
Bus suspend/resume log messages are logged with info log
level which is by default not logged in kernel log buffer.
Increase bus suspend/resume log level to error such that
this critical log message is logged in kernel message.

Once wlan suspend/resume feature becomes more stable this
log message can be reduced back to info log level.

Change-Id: Ic78900d5b111637d4d8d1b26e18fa298fbbd893f
CRs-Fixed: 1041335
2016-07-13 18:02:33 -07:00
Jeff Johnson
c327332c92 qcacld-3.0: Convert wlan_hdd_power.c to unified logging
Currently the HDD code uses a variety of logging APIs.  In
qcacld-3.0 HDD should converge on a unified set of logging APIs.
Update wlan_hdd_power.c to use the unified set of APIs.

Change-Id: Iba049d8734436c916efce4d3c1fa2c55ac09c333
CRs-Fixed: 937685
2016-07-13 17:22:16 -07:00
Jeff Johnson
5f735d5e89 qcacld-3.0: Convert wlan_hdd_ocb.c to unified logging
Currently the HDD code uses a variety of logging APIs.  In
qcacld-3.0 HDD should converge on a unified set of logging APIs.
Update wlan_hdd_ocb.c to use the unified set of APIs.

Change-Id: I7ec58632a781024fedba46ff25baa873ac52bd9a
CRs-Fixed: 937672
2016-07-13 17:22:15 -07:00
Jeff Johnson
e2d30d000c qcacld-3.0: Convert wlan_hdd_hostapd.c to unified logging [7/7]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_hostapd.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 7 set the HDD_DISALLOW_LEGACY_HDDLOG flag so that no future
changes can introduce new instances of legacy logging.

Change-Id: Ia76d147a57bbc2f1361f8574d226447d0e4c8408
CRs-Fixed: 937661
2016-07-13 17:22:14 -07:00
Jeff Johnson
b90586c3bc qcacld-3.0: Convert wlan_hdd_hostapd.c to unified logging [6/7]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_hostapd.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 6 update the following functions:
__wlan_hdd_cfg80211_stop_ap()
__wlan_hdd_cfg80211_start_ap()
__wlan_hdd_cfg80211_change_beacon()

Change-Id: I173579cb7ba6fc1baa7e6667f06bf642e961b5bb
CRs-Fixed: 937661
2016-07-13 17:22:13 -07:00
Jeff Johnson
ecd884eb91 qcacld-3.0: Convert wlan_hdd_hostapd.c to unified logging [5/7]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_hostapd.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 5 update the following functions:
__iw_softap_stopbss()
hdd_softap_get_sta_info()
__iw_softap_get_sta_info()
__iw_set_ap_genie()
__iw_get_softap_linkspeed()
hdd_init_ap_mode()
hdd_wlan_create_ap_dev()
hdd_register_hostapd()
hdd_unregister_hostapd()
wlan_hdd_set_channel()
wlan_hdd_add_ie()
wlan_hdd_add_hostapd_conf_vsie()
wlan_hdd_add_extra_ie()
wlan_hdd_cfg80211_alloc_new_beacon()
wlan_hdd_cfg80211_update_apies()
wlan_hdd_config_acs()
wlan_hdd_setup_driver_overrides()
wlan_hdd_cfg80211_start_bss()

Change-Id: Ibaf0dbb2af0928bf4dce5a475df7e536d85d1451
CRs-Fixed: 937661
2016-07-13 17:22:13 -07:00
Jeff Johnson
b849189e6d qcacld-3.0: Convert wlan_hdd_hostapd.c to unified logging [4/7]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_hostapd.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 4 update the following functions:
__iw_softap_getparam()
__iw_softap_modify_acl()
__iw_softap_set_max_tx_power()
__iw_softap_set_tx_power()
__iw_softap_getassoc_stamacaddr()
__iw_softap_disassoc_sta()
wlan_hdd_set_force_acs_ch_range()
__iw_softap_get_channel_list()
__iw_get_genie()
__iw_get_wpspbc_probe_req_ies()
__iw_set_auth_hostap()
__iw_set_ap_encodeext()
__iw_softap_setwpsie()

Change-Id: If2388fbdaf5988bd1864443f58594098c44bf837
CRs-Fixed: 937661
2016-07-13 17:22:12 -07:00
Jeff Johnson
edff0d92af qcacld-3.0: Convert wlan_hdd_hostapd.c to unified logging [3/7]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_hostapd.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 3 update the following functions:
__iw_softap_setparam()
__iw_softap_get_three()

Change-Id: I5db86f54bcc978d7935873423fa1e91bc83d7a2e
CRs-Fixed: 937661
2016-07-13 17:22:11 -07:00
Jeff Johnson
fb33cf59d4 qcacld-3.0: Convert wlan_hdd_hostapd.c to unified logging [2/7]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_hostapd.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 2 update the following functions:
hdd_softap_unpack_ie()
hdd_softap_set_channel_change()
__iw_softap_set_ini_cfg()
__iw_softap_get_ini_cfg()
__iw_softap_set_two_ints_getnone()

Change-Id: Ia755a63c7154253a02b395fa60f8d3ef82628bba
CRs-Fixed: 937661
2016-07-13 17:22:10 -07:00
Jeff Johnson
cfb85837d3 qcacld-3.0: Convert wlan_hdd_hostapd.c to unified logging [1/7]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_hostapd.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 1 update the following functions:
hdd_hostapd_channel_allow_suspend()
hdd_hostapd_channel_prevent_suspend()
__hdd_hostapd_open()
__hdd_hostapd_stop()
__hdd_hostapd_uninit()
hdd_set_sap_ht2040_mode()
hdd_hostapd_inactivity_timer_cb()
hdd_clear_all_sta()
hdd_stop_bss_link()
hdd_issue_stored_joinreq()
hdd_send_radar_event()
hdd_hostapd_sap_event_cb()

Change-Id: I5ba28609a7859472bfe08517260364f286f068f4
CRs-Fixed: 937661
2016-07-13 17:22:09 -07:00
Gupta, Kapil
8a605e1b59 qcacld-3.0: Correct len size of oem data request
qcacld-2.0 to qcacld-3.0 propagation.

oem data request len size should be of 4 byte instead of
1 byte.
Add changes to correct len size in oem data structure across the
layers.

Change-Id: I9b377420c50ff1160964f94be5eaa0072df0f63d
CRs-Fixed: 1013488
2016-07-13 15:27:49 -07:00
Vishwajith Upendra
5db81c93fc Release 5.1.0.22
Release 5.1.0.22

Change-Id: I8b5c9595128030e430d5d8fbf1130c3f760e9689
CRs-Fixed: 688141
2016-07-13 14:02:38 -07:00
Leo Chang
bc24e6177e qcacld-3.0: ipa data path bug fix
WDI RX ring size should be larger than RX buffer count
RX2 ring free bug fix
WDI HTT message free bug fix

Change-Id: Ib3dda42ab46d07fab1847e2590d815c851524960
CRs-fixed: 1037977
2016-07-13 13:14:23 -07:00
Nitesh Shah
816bc13725 qcacld-3.0: CL 1535058 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

WMI service flag for flash read / write support.

Change-Id: I896b4b53f596df96ec7f023b9301f6a695cd325a
CRs-fixed: 865207
2016-07-12 22:57:42 -07:00
Nitesh Shah
49eecf0de5 qcacld-3.0: CL 1536911 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

WMI pdev params to specify retry limit for control frames, and
propagation delay.

Change-Id: I9662d4cfee0910706486ae1709749aacd938fa3c
CRs-fixed: 865207
2016-07-12 22:57:41 -07:00
Nitesh Shah
3a9430639e qcacld-3.0: CL 1535819 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

WMI interface change for DBS roaming and CSA roaming.

Change-Id: Ia483de75c1ea7caa6526aaddd15886fe6a4404bd
CRs-fixed: 865207
2016-07-12 22:57:40 -07:00
Nitesh Shah
5de1cf8de2 qcacld-3.0: CL 1534810 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Define WMI messages for per-AC rx reorder timeouts
and A-MPDU aggregation limits.

Change-Id: I19d96379a93e2d860cce249704834f06f271efb0
CRs-fixed: 865207
2016-07-12 22:57:38 -07:00
Selvaraj, Sridhar
217e9a985e qcacld-3.0: CL 1532157 - update fw common interface files
qcacld-2.0 to qcacld-3.0 propagation

Add WMI TDLS scan start, complete events.

Change-Id: I74f0948061bee593dc15a0ceaab0a25633bb6dd4
CRs-fixed: 865207
2016-07-12 22:57:37 -07:00
Pradeep Reddy POTTETI
b36e8fcd63 qcacld-3.0: CL 1530684 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Add scan flags for half and quarter-rate channels.
Add WMI service bit for commands pertaining to Host managed
RX reorder.

Change-Id: I2baf13e0ab8f669153b0fb66f2b286c40f1fcc20
CRs-fixed: 865207
2016-07-12 22:57:35 -07:00
Pradeep Reddy POTTETI
4189bf9ed9 qcacld-3.0: CL 1529540 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Tufello USB Wlan Adapter - Flash Read

Change-Id: Ib90306a871febe43a076ae8b104442bbc3a4960c
CRs-Fixed: 865207
2016-07-12 22:57:34 -07:00