Revīziju grafs

1298 Revīzijas

Autors SHA1 Ziņojums Datums
Archana Ramachandran
dc7f2c9c2f qcacld-3.0: Fix NULL pointer dereferencing in p2p TX MGMT
Fix dereferencing channel struct pointer without verifying the
validity.

CRs-Fixed: 1034743
Change-Id: I7a49467c3fdbe85c7255fcce7f135e53658eef63
2016-07-06 14:42:58 -07:00
Varun Reddy Yeturu
e20ffc05d0 qcacld-3.0: Enable early stop scan by default
Enable the early stop scan feature by default and also
modify the default values as per the request from the
firmware

CRs-Fixed:  1036474
Change-Id: I0f2596633084ea97e64fb2c7d9975052d1ac98fb
2016-07-06 13:35:43 -07:00
Varun Reddy Yeturu
83ccb9b38b qcacld-3.0: Fix the invalid SNR value in Host
qcacld-2.0 to qcacld-3.0 propagation

Firmware sends 0x127 as the invalid snr value when it is in a
state of unable to get it from either a beacon or data packet

CRs-Fixed: 939255
Change-Id: Ia45a8c4acd6a54ff3e56b192c11cea0df97eadaf
2016-07-06 13:34:48 -07:00
Vishwajith Upendra
2a9318a7e9 Release 5.1.0.17
Release 5.1.0.17

Change-Id: I3b342d728cc280e434833a07b6d8ed6d1d19b98d
CRs-Fixed: 688141
2016-07-06 13:33:12 -07:00
Kabilan Kannan
91765b4a34 qcacld-3.0: Remove TDLS wider bandwidth support from VHT IE
TDLS wider band width is not yet supported, but it is
incorrectly advertised in TDLS action frames.
Remove the wider bandwidth advertisement from VHT IE
in TDLS action frames.

Change-Id: I66f0e5d147af93100a7780b14636ba6438330584
CRs-Fixed: 1028205
2016-07-06 13:33:08 -07:00
Kabilan Kannan
7ae4d60284 qcacld-3.0: Fix the incorrect PHY mode problem in TDLS
The channel width of the TDLS direct link
on the base channel shall not exceed the
channel width of the BSS to which the
TDLS peer STAs are associated.
Add changes in the host driver to restrict
TDLS channel width to equal to BSS channel
width

Change-Id: I5c640164b3c747a55bde3efc553d2861057ebf42
CRs-Fixed: 1028201
2016-07-06 13:33:03 -07:00
Sandeep Puligilla
a8d4eec7d9 qcacld-3.0: Fix to avoid acquiring mutex in atomic context
Propagation from qcacld-2.0 to qcacld-3.0

When a radar is indicated from WMA to HDD,  it happens in a soft
irq context and the dfs_radar_found flag is set by acquiring
a mutex which leads to apps crash.  The crash happens if the mutex for
dfs_radar_found flag is being held by the main thread and as a result
the soft irq thread seeking the same mutex will be put in the kernel
sleep queue leading to apps crash as sleeping is not allowed in soft irq
context.

Fix the issue by using spinlock instead of mutexes.  An exception
has been made to use the spinlock in the main thread context to
work around the complications involving for radar indication
callback to happen in worker thread context instead of soft
irq context.

Change-Id: I4bc01ac8991c593ffcaf6ee532f4594cb8beba16
CRs-Fixed: 928394
2016-07-06 13:32:53 -07:00
Naveen Rawat
b6a951a21d qcacld-3.0: Add check for NDI role in __lim_fresh_scan_reqd
This is qcacld-2.0 to qcacld-3.0 propagation

Add NDI role check in __lim_fresh_scan_reqd to allow request for fresh scan.

Change-Id: Icea6228c6491d8b7d0588a699fe7f16d0dd0d3f1
CRs-Fixed: 1030380
2016-07-06 13:31:59 -07:00
Naveen Rawat
8d63a59f3b qcacld-3.0: Add NDP reason codes in deferred rsp sent for NDP commands
This is qcacld-2.0 to qcacld-3.0 propagation.

Add NDP reason codes in deferred response sent for NDP commands so that
failure during processing of NDP cmds can be notified to service layer.

Change-Id: I731b520fde226c351464d94033a1ced2888a4d18
CRs-Fixed: 962367
2016-07-06 13:31:56 -07:00
Naveen Rawat
d915350fe4 qcacld-3.0: Update NAN HDD APIs as per vendor definitions changes
This is qcacld-2.0 to qcacld-3.0 propagation.

Remove usage of following attributes from NAN HDD APIs:
1) QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REQUEST
2) QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_RESPONSE
3) QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND

Change-Id: I545662de41d4a22a3f1a9f5e037eeaa4050b9d42
CRs-Fixed: 962367
2016-07-06 13:31:50 -07:00
Naveen Rawat
460be785ea qcacld-3.0: Delete NAN data peer on confirm with reject
This is qcacld-2.0 to qcacld-3.0 propagation.

Delete NAN data peer if first NDP_CONFIRM for a peer is received
with REJECT and active ndp instances as 0.

Change-Id: I9d3ff7166fb437f8af79e5bd915022d452b16a35
CRs-Fixed: 962367
2016-07-06 13:31:45 -07:00
Naveen Rawat
64a9a1a5b3 qcacld-3.0: Free up ndp sme command resources at sme close
This is qcacld-2.0 to qcacld-3.0 propagation

Free up memory allocated for NDP SME commands at sme_close, so that in
the event of unload while NDP command response was awaited, resources
can be freed.

Change-Id: I287ad77cbdca4b816f38bea436173b88e6eafc93
CRs-Fixed: 962367
2016-07-06 13:31:38 -07:00
Naveen Rawat
90ae3080de qcacld-3.0: Update NAN HDD APIs as per vendor definitions changes
This is qcacld-2.0 to qcacld-3.0 propagation.

Remove usage of following attributes from NAN HDD APIs:
1) QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO_LEN
2) QCA_WLAN_VENDOR_ATTR_NDP_NUM_INSTANCE_ID
3) QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_STATUS_CODE
4) ndp_cfg from NDP_CONFRIM
5) Remove mandatory check for ndp_app_info in data initiator

Change-Id: I17fe580661f836d45a518a330a63d2c6de8bcf28
CRs-Fixed: 962367
2016-07-06 13:31:33 -07:00
Deepak Dhamdhere
a6d2f4cec4 qcacld-3.0: Process NDP data end indication
qcacld-2.0 to qcacld-3.0 propagation

Firmware sends an array of:
    {ndp instance id, vdev id, active ndp num, peer mac address}
for the NDP instances that are to be terminated.
Host driver deletes the peers that have 0 active ndp instances and
sends the entire list of ndp instance id's to the service layer.

Change-Id: I325843ce7fb8198466cb66ce66710cef999d4581
CRs-Fixed: 962367
2016-07-06 13:31:29 -07:00
Naveen Rawat
f28315cd66 qcacld-3.0: Add support for NAN Data End Request
This is qcacld-2.0 to qcacld-3.0 propagation.

Add implementation of NAN Data End request.

Change-Id: Iddd22a83b0763dab2e7398f4d2cf5b9ada58225a
CRs-Fixed: 962367
2016-07-06 13:31:24 -07:00
Abhishek Singh
ed998de395 qcacld-3.0: Support for NDP Responder Request for Accept all policy
This is qcacld-2.0 to qcacld-3.0 propagation.

Add implementation for auto accept NDP responder request.

Change-Id: I1d610696cded1f91b646712e3f8c27659bbae6af
CRs-Fixed: 962367
2016-07-06 13:31:17 -07:00
Abhishek Singh
4fef747c51 qcacld-3.0: Add support for NDP Responder Request
This is qcacld-2.0 to qcacld-3.0 propagation

Add implementation for non-auto accept NDP responder request.

Change-Id: I2ced33cfa0faf487d8e31275493e8d85251e8c59
CRs-Fixed: 962367
2016-07-06 13:31:11 -07:00
Deepak Dhamdhere
5872c8c1c2 qcacld-3.0: Fix __hdd_hard_start_xmit API for NAN Data Interface
qcacld-2.0 to qcacld-3.0 propagation

Make changes in __hdd_hard_start_xmit API registered with OS to enable
data path for NAN Data Interface.

Change-Id: I1d54c79da127b1dac7ea8c8e0e855e043571ad77
CRs-Fixed: 962367
2016-07-06 13:31:07 -07:00
Deepak Dhamdhere
0f076bd0db qcacld-3.0: Add support for NDP data initiator request
qcacld-2.0 to qcacld-3.0 propagation

Add host side changes to handle INITIATOR_REQ, INITIATOR_RSP,
NEW_PEER_IND and NDP_CONFIRM_IND to support NDP data initiator
request.

Change-Id: I10bf88d3fff27e1f842b720a598c923983c06c90
CRs-Fixed: 962367
2016-07-06 13:31:04 -07:00
Deepak Dhamdhere
f16015f89f qcacld-3.0: Enable ipv4/ipv6 address notification for NDI
qcacld-2.0 to qcacld-3.0 propagation

NAN Data Interface also supports ipv4 and ipv6 address notification
like any other netdev. Enable ipv4/ipv6 notifications for NDI mode.

Change-Id: I6ad281d9b3dce66db7bbfd198296d0d086ccf4fb
CRs-Fixed: 962367
2016-07-06 13:30:59 -07:00
Deepak Dhamdhere
8360d4c9d4 qcacld-3.0: Make ndp_ctx part of station context
qcacld-2.0 to qcacld-3.0 propagation

Make ndp_ctx part of station context, that way NAN data is assumed
to be another device role like P2P client and IBSS in the station mode.

CRs-Fixed: 962367
Change-Id: I93e2c14c59d4cbdfaadcd31e73fe0e3681843ce3
2016-07-06 13:30:56 -07:00
Deepak Dhamdhere
616d9c51ae qcacld-3.0: Delete NDI netdev if start bss fails
qcacld-2.0 to qcacld-3.0 propagation

The NAN Data Interface is required to be deleted if start bss
fails for some reason.

Change-Id: I83f2511a9df569fde791a0da110ac873fb0381dd
CRs-Fixed: 962367
2016-07-06 13:30:53 -07:00
Deepak Dhamdhere
7e6016f928 qcacld-3.0: Add NAN datapath enabled flag to HDD context
qcacld-2.0 to qcacld-3.0 propagation

Add nan_datapath_enabled flag in HDD context to represent current
disable/enable state of NAN datapath feature.
Do not modify the .ini configured value because getConfig command
will show incorrect results.

Change-Id: Ib0b44168aca24802d8bd86b0665a1060ba3a1bf5
CRs-Fixed: 962367
2016-07-06 13:30:49 -07:00
Naveen Rawat
e82c1f302f qcacld-3.0: Enable Wake On Wireless events for NAN datapath
qcacld-2.0 to qcacld-3.0 propagation

All the wake events for all NAN datapath event IDs are sent
through a single event WOW_NAN_DATA_EVENT. Its handler derives
the event ID from the TLV tag and calls individual NDP event
handlers.
- Enable WOW_NAN_DATA_EVENT.
- Translate WOW event TLV tag to NDP event ID.
- Call NDP event handlers for WOW_REASON_NAN_DATA.

Change-Id: Ia99bb6b0e1637d052945ed6f4878237b3612bb20
CRs-Fixed: 962367
2016-07-06 13:30:42 -07:00
Himanshu Agarwal
879a3bec5c qcacld-3.0: Add NULL checks before dereferencing
Add NULL checks before dereferencing in:
1) BMI layer
2) HTT layer
3) EPPING layer.

Change-Id: I9998d4aeb983dc101121a71d791d7ec626e3f5d4
CRs-Fixed: 1036390
2016-07-06 13:30:39 -07:00
Manishekar Chandrasekaran
1ff1757d6f qcacld-3.0: Disallow STA+SAP+P2P concurrency scenarios
Disallow any form of STA+SAP+P2P concurrency scenarios
since three port concurrency is not planned to be
supported currently. This is the only three port
combination that the user can exercise with the new
framework changes in place and hence disallowing this
combination to avoid crashes.

Change-Id: I384d4412e5790aaf34175f78163ec98b73588fea
CRs-Fixed: 1032912
2016-07-06 13:30:34 -07:00
Nirav Shah
ffc6a094b4 qcacld-3.0: Vote performance qos for high throughput use case
With WLAN use case, FPC(Fast Power Collapse) wakeup latency is
too long. Then some use case, FPC feature break performance.
To ensure CPU wakeup, if detected high throughput, vote for
performance qos not to activate FPC.

Change-Id: I4a8dca19ce32944769e85ba5beeae93bb49b29a9
CRs-fixed: 1026370
2016-07-06 13:30:30 -07:00
Nirav Shah
3bbfa51404 qcacld-3.0: wlan rx thread set affinity when need high bandwidth
With dual cluster system, to reduce cache miss issue and for
lower latency, RX thread should run on big cluster.
When high bandwidth detected by WLAN host driver,
RX thread should move to big cluster. And low
throughput required, RX thread should go to little core CPU
to reduce power consumption.
CPU affinity should controlled by Online CPU and throughput
requirement. Even high throughput is required, if PERF CPU is
not online, RX thread cannot attach to PERF CPU.

Change-Id: I85591d3c74973c40388a04353b1d32e009a46ec1
CRs-fixed: 1026370
2016-07-06 13:30:26 -07:00
Peng Xu
8fdaa49618 qcacld-3.0: Implement P2P listen offload feature
To lower the power consumption caused by the P2P listen operation,
it is offloaded from supplicant and host driver to firmware,
so that supplicant and host driver can be in power save mode during the
listen operation.

Change-Id: Iedd990427afe22842faecc7b29e4f38220c75684
CRs-fixed: 1032877
2016-07-06 13:30:23 -07:00
Krishna Kumaar Natarajan
93c9de134e qcacld-3.0: Update log level in wma_mgmt_rx_process
Update log level in wma_mgmt_rx_process to ensure driver unload
is not stuck due to excessive error logs.

Change-Id: Icf4a238620c6501a9648cccc05424fa1c617ed13
CRs-Fixed: 1028694
2016-07-06 13:30:17 -07:00
Krunal Soni
3091bcc07d qcacld-3.0: Remove deprecated gPolicyManagerEnable INI item
gPolicyManagerEnable INI item is no longer needed. Remove this
INI item and make policy manager code enabled by default.

Change-Id: I57822f47325c03e940b2802fb02900c64d3587e1
CRs-Fixed: 1034888
2016-07-06 13:30:12 -07:00
Krunal Soni
fd38f2365b qcacld-3.0: Remove deprecated gEnableM2MLimiation INI item
gEnableM2MLimiation INI item is no longer needed. Remove entire
code related to this INI item.

Also, remove all concurrency related code defined for emulation platform
within QCA_WIFI_3_0_EMU MACRO

CRs-Fixed: 1034888
Change-Id: Iccfd1dd2935634d2552f4eaa5cd9d3ab59a7596a
2016-07-06 13:30:09 -07:00
Krunal Soni
c7ef8f0982 qcacld-3.0: Fix cds_complete_action API from going in infinite loop
In cds_complete_action API when cds_get_connection_for_vdev_id is
called to get connection index, it may return
MAX_NUMBER_OF_CONC_CONNECTION to notify that no such connection found.

up-on receiving this max number with current bug, the
cds_complete_action API goes in to infinite loop which causes driver to
crash at the end.

Fix this bug by updating API's loop correctly.

Change-Id: Iaf722afb4a450c66f976ad1a3ae4b697657216ef
CRs-Fixed: 1034888
2016-07-06 13:30:05 -07:00
Jeff Johnson
9c50e78709 qcacld-3.0: Convert wlan_hdd_cfg80211.c to unified logging [6/6]
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_cfg80211.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 set the HDD_DISALLOW_LEGACY_HDDLOG flag so that no future
changes can introduce new instances of legacy logging.

Change-Id: Ic990eccfa1e58980aed321352d9a2aca92f736a6
CRs-Fixed: 937644
2016-07-06 13:30:01 -07:00
Jeff Johnson
3d8ac553b3 qcacld-3.0: Convert wlan_hdd_cfg80211.c to unified logging [5/6]
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_cfg80211.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:
wlan_hdd_cfg80211_set_privacy
__wlan_hdd_cfg80211_connect
wlan_hdd_disconnect
__wlan_hdd_cfg80211_disconnect
wlan_hdd_cfg80211_set_privacy_ibss
__wlan_hdd_cfg80211_join_ibss
__wlan_hdd_cfg80211_leave_ibss
__wlan_hdd_cfg80211_set_wiphy_params
__wlan_hdd_cfg80211_del_station
__wlan_hdd_cfg80211_add_station
__wlan_hdd_cfg80211_set_pmksa
__wlan_hdd_cfg80211_del_pmksa
__wlan_hdd_cfg80211_flush_pmksa
__wlan_hdd_cfg80211_update_ft_ies
wlan_hdd_cfg80211_update_replay_counter_callback
__wlan_hdd_cfg80211_set_rekey_data
__wlan_hdd_cfg80211_set_mac_acl
wlan_hdd_cfg80211_lphb_ind_handler
__wlan_hdd_cfg80211_testmode
wlan_hdd_testmode_rx_event
__wlan_hdd_cfg80211_set_ap_channel_width
__wlan_hdd_cfg80211_channel_switch
wlan_hdd_convert_nl_iftype_to_hdd_type

Change-Id: Ifcd456d13509fcb861a2d8c2f4c3b5d31266ce41
CRs-Fixed: 937644
2016-07-06 13:29:59 -07:00
Jeff Johnson
ff5b9aae66 qcacld-3.0: Convert wlan_hdd_cfg80211.c to unified logging [4/6]
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_cfg80211.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:
__wlan_hdd_change_station
__wlan_hdd_cfg80211_add_key
__wlan_hdd_cfg80211_get_key
__wlan_hdd_cfg80211_set_default_key
wlan_hdd_cfg80211_update_bss_list
wlan_hdd_cfg80211_inform_bss_frame
wlan_hdd_cfg80211_update_bss_db
wlan_hdd_cfg80211_update_bss
wlan_hdd_cfg80211_pmksa_candidate_notify
wlan_hdd_cfg80211_roam_metrics_preauth
wlan_hdd_cfg80211_roam_metrics_preauth_status
wlan_hdd_cfg80211_roam_metrics_handover
hdd_select_cbmode
wlan_hdd_cfg80211_connect_start
wlan_hdd_cfg80211_set_auth_type
wlan_hdd_set_akm_suite
wlan_hdd_cfg80211_set_cipher
wlan_hdd_cfg80211_set_ie
hdd_is_wpaie_present

Change-Id: If41d51bc011d0887b6f73511ac0509bff1722d4a
CRs-Fixed: 937644
2016-07-06 13:29:56 -07:00
Jeff Johnson
7784811987 qcacld-3.0: Convert wlan_hdd_cfg80211.c to unified logging [3/6]
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_cfg80211.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:
__wlan_hdd_cfg80211_wifi_configuration_set
__wlan_hdd_cfg80211_wifi_logger_start
__wlan_hdd_cfg80211_wifi_logger_get_ring_data
wlan_hdd_add_tx_ptrn
__wlan_hdd_cfg80211_offloaded_packets
__wlan_hdd_cfg80211_monitor_rssi
hdd_rssi_threshold_breached
__wlan_hdd_cfg80211_get_link_properties
hdd_get_bpf_offload_cb
hdd_post_get_bpf_capabilities_rsp
hdd_get_bpf_offload
hdd_set_reset_bpf_offload
__wlan_hdd_cfg80211_bpf_offload
__wlan_hdd_cfg80211_sap_configuration_set
wlan_hdd_cfg80211_register
*wlan_hdd_cfg80211_get_ie_ptr
wlan_hdd_validate_operation_channel
wlan_hdd_set_dhcp_server_offload
__wlan_hdd_cfg80211_change_bss
wlan_hdd_change_client_iface_to_new_mode
__wlan_hdd_cfg80211_change_iface

Change-Id: If07608bc7280ab7acd018a547f424d3f3fd6d629
CRs-Fixed: 937644
2016-07-06 13:29:53 -07:00
Jeff Johnson
020db459ad qcacld-3.0: Convert wlan_hdd_cfg80211.c to unified logging [2/6]
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_cfg80211.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:
__wlan_hdd_cfg80211_get_tdls_capabilities
wlan_hdd_send_avoid_freq_event
__is_driver_dfs_capable
wlan_hdd_sap_cfg_dfs_override
wlan_hdd_cfg80211_start_acs
__wlan_hdd_cfg80211_do_acs
__wlan_hdd_cfg80211_get_supported_features
__wlan_hdd_cfg80211_set_scanning_mac_oui
__wlan_hdd_cfg80211_get_features
__wlan_hdd_cfg80211_set_ext_roam_params
wlan_hdd_check_dfs_channel_for_adapter
wlan_hdd_disable_dfs_chan_scan
__wlan_hdd_cfg80211_disable_dfs_chan_scan
__wlan_hdd_cfg80211_keymgmt_set_key
__wlan_hdd_cfg80211_get_logger_supp_feature
wlan_hdd_send_roam_auth_event

Change-Id: I54e01d92eafffc2a0c5d966158072f3b2dd101a4
CRs-Fixed: 937644
2016-07-06 13:29:48 -07:00
Vishwajith Upendra
ae661a97d0 Release 5.1.0.16
Release 5.1.0.16

Change-Id: Iff8c85f2aaf8702c1a02c8e0d177d304ea47de91
CRs-Fixed: 688141
2016-07-06 13:29:44 -07:00
Naveen Rawat
9801ac0282 qcacld-3.0: Handle peer kickout event for STA role
This is qcacld-2.0 to qcacld-3.0 propagation

Till now kickout event was only handled for SAP role.
The patch handles wmi event for peer kickout due to
inactivity in STA role.

Change-Id: I437dc3e07737bb653e969406b64cd9dad56fbbcd
CRs-Fixed: 861917
2016-07-06 13:29:41 -07:00
Naveen Rawat
6de4645864 qcacld-3.0: Destroy sap_dfs_cac_timer properly
This is qcacld-2.0 to qcacld-3.0 propagation.

Destroy sap_dfs_cac_timer at callback function based on check if timer
is still valid.

Change-Id: Ib8b92ac11444b63a0d8002edff35cd9238bb2573
CRs-Fixed: 967907
2016-07-06 13:29:36 -07:00
Naveen Rawat
0c81edcad4 qcacld-3.0: Fix memory leak in del bss response
This is qcacld-2.0 to qcacld-3.0 propagation

Fix memory leak in del_bss_rsp params in case del_bss_rsp
is dropped at lim due to invalid session id.

Change-Id: I4dfc8697fd5248d8a16ad5a248d5f06e86a105d0
CRs-Fixed: 970601
2016-07-06 13:22:40 -07:00
Tushnim Bhattacharyya
d75eb94da7 qcacld-3.0: Add array boundary check while splitting channel list
Add array boundary check while splitting channel list for populating
PCL

Change-Id: I367d8f93b736c988da3746e0acdd57a6ce2c6a46
CRs-Fixed: 1034774
2016-06-30 14:18:20 -07:00
Jeff Johnson
46b4079866 qcacld-3.0: Convert wlan_hdd_cfg80211.c to unified logging [1/6]
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_cfg80211.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 since automated conversion is not
properly processing these function:
         wlan_hdd_cfg80211_acs_ch_select_evt()
         wlan_hdd_cfg80211_set_key_wapi()

Change-Id: I31e5ea914ed1f5aa807ff0ce1c67b6ed64620dee
CRs-Fixed: 937644
2016-06-30 13:38:44 -07:00
Nirav Shah
df3659ec30 qcacld-3.0: Add skb NULL check in error scenario
Add skb NULL check in error scenario before
dereferencing it.

CRs-Fixed: 1034600
Change-Id: I18b19978d89346dc09f72bec7323de1212460dd2
2016-06-30 11:49:22 -07:00
Naveen Rawat
35804773da qcacld-3.0: Fix NULL pointer de-reference in wma functions
Add null pointer check after malloc/utility function call in function:
 * wma_update_tdls_peer_state
 * wma_init_max_no_of_peers
 * wma_mgmt_tx_completion_handler
 * wma_ocb_set_config
 * wma_roam_scan_offload_chan_list
 * wma_roam_scan_filter
 * wma_pno_start
 * wma_start_extscan

Change-Id: I3c46ffe19e98146a5e96781a88295af88274a74f
CRs-Fixed: 1034255
2016-06-30 11:06:25 -07:00
Naveen Rawat
e9fb4cef92 qcacld-3.0: Fix out of bound access in wma_process_gtk_offload_req
Check vdev_id against WMA_MAX_SUPPORTED_BSS instead of wma->max_bssid in
function wma_process_gtk_offload_req.

Change-Id: Ife4e8c907f835f766d6d44815418158cfd305343
CRs-Fixed: 1034255
2016-06-30 11:06:23 -07:00
Naveen Rawat
9598f5edb9 qcacld-3.0: Fix NULL pointer dereference in csr_is_p2p_session_connected
Check pSession->pCurRoamProfile against NULL before dereferencing it in
function csr_is_p2p_session_connected.

Change-Id: I61f681dfd4ff3c7fd2e443f54f6b1713db088250
CRs-Fixed: 1034255
2016-06-30 11:06:22 -07:00
Naveen Rawat
7ecf53d0ae qcacld-3.0: Add for NULL pointer check in sme/csr functions
Check for NULL pointer before accessing pointers in function:
 * csr_roam_join_handle_profile
 * csr_roam_process_results_default
 * csr_roam_process_start_bss_success
 * csr_roam_process_join_res
 * csr_process_nss_update_req
 * csr_is_p2p_session_connected

Change-Id: I9bf83a2641a4523713b9180679648202ea9c9eef
CRs-Fixed: 1034255
2016-06-30 11:06:16 -07:00
Naveen Rawat
cf684760d6 qcacld-3.0: Fix NULL pointer dereference in sme_register_ftm_msg_processor
In function sme_register_ftm_msg_processor, remove access to mac_ctx which is
dereferencing a NULL pointer.

Change-Id: I6e2db08703b3beff23f9398d9d1c88e1c6bcb229
CRs-Fixed: 1034255
2016-06-30 11:06:14 -07:00