summaryrefslogtreecommitdiff
path: root/qdf
diff options
context:
space:
mode:
authorPaul Zhang <paulz@codeaurora.org>2018-02-02 17:43:37 +0800
committersnandini <snandini@codeaurora.org>2018-02-08 21:37:37 -0800
commitca6152167b9744d62723f49e6436a30c9366cb1d (patch)
tree5c36bcbfbba4fe58743c6d2902a9281ecbe29cc9 /qdf
parente6d32a9f381fba48ec49fd5c703c76a4c3c7f453 (diff)
downloadqca-wfi-host-cmn-ca6152167b9744d62723f49e6436a30c9366cb1d.tar.gz
qcacmn: Support 11d for non-offload platform
Support 11d for non-offload platform by maintaining count of beacons encountered for each country code and choosing country code with max votes as device's country code. Change-Id: I83b66e980854eded17e254386561fa32b1f8c4ac CRs-Fixed: 2154048
Diffstat (limited to 'qdf')
-rw-r--r--qdf/inc/qdf_types.h5
-rw-r--r--qdf/linux/src/i_qdf_types.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/qdf/inc/qdf_types.h b/qdf/inc/qdf_types.h
index cd50fcec1..9090cdda0 100644
--- a/qdf/inc/qdf_types.h
+++ b/qdf/inc/qdf_types.h
@@ -95,6 +95,11 @@ typedef struct qdf_sglist {
*/
#define qdf_packed __qdf_packed
+/**
+ * qdf_toupper - char lower to upper.
+ */
+#define qdf_toupper __qdf_toupper
+
typedef void *qdf_net_handle_t;
typedef void *qdf_netlink_handle_t;
diff --git a/qdf/linux/src/i_qdf_types.h b/qdf/linux/src/i_qdf_types.h
index c7a2cd05f..a4d6ce7e6 100644
--- a/qdf/linux/src/i_qdf_types.h
+++ b/qdf/linux/src/i_qdf_types.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -55,6 +55,7 @@
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/types.h>
+#include <linux/ctype.h>
#include <linux/sched.h>
#include <linux/completion.h>
#include <linux/string.h>
@@ -255,6 +256,7 @@ enum __qdf_net_wireless_evcode {
#define __qdf_vprint vprintk
#define __qdf_snprint snprintf
#define __qdf_vsnprint vsnprintf
+#define __qdf_toupper toupper
#define __QDF_DMA_BIDIRECTIONAL DMA_BIDIRECTIONAL
#define __QDF_DMA_TO_DEVICE DMA_TO_DEVICE