drivers: net: wireless: add HTC's bcmdhd_4335_mcc
From m7stockui-3.4.10-gef77362.
Modifications from stock HTC driver:
* Remove poorly commented-out CFLAGS section from Makefile
* Make CONFIG_BCMDHD_4335_MCC select WIRELESS_EXT, WEXT_PRIV
* Fix msm_watchdog.h include in dhd_sdio.c
* Our kernel does not need OLD_CFG_80211; removing this flag also
required the following fixes in wl_cfg80211.c
- L292: ifdef out used_default_ssid
- L6698-6702: ifdef out usage of wl_cfg80211_hostapd_sec()
Changes outside of driver: Make necessary additions (and block with
CONFIG_BCMDHD_4335_MCC where appropriate) in:
* drivers/mmc/host/msm_sdcc.c
* include/linux/ieee80211.h
* include/linux/nl80211.h
* include/linux/wlan_plat.h
Change-Id: I405010d3ae0fc3586de2a2aa3ffaab01909ddcde
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 1ca1b83..3a9f07d 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -1302,6 +1302,7 @@
WLAN_REASON_QSTA_REQUIRE_SETUP = 38,
WLAN_REASON_QSTA_TIMEOUT = 39,
WLAN_REASON_QSTA_CIPHER_NOT_SUPP = 45,
+ WLAN_REASON_RSSI_LOW_IND = 50,
/* 802.11s */
WLAN_REASON_MESH_PEER_CANCELED = 52,
WLAN_REASON_MESH_MAX_PEERS = 53,
@@ -1669,6 +1670,11 @@
#define WLAN_OUI_WFA 0x506f9a
#define WLAN_OUI_TYPE_WFA_P2P 9
+#ifdef CONFIG_BCMDHD_4335_MCC
+#define WLAN_AKM_SUITE_WAPI_PSK 0x000FAC04
+#define WLAN_AKM_SUITE_WAPI_CERT 0x000FAC12
+#endif
+
/*
* WMM/802.11e Tspec Element
*/
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index dbcb8c8..1537bd8 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -2748,6 +2748,9 @@
enum nl80211_wpa_versions {
NL80211_WPA_VERSION_1 = 1 << 0,
NL80211_WPA_VERSION_2 = 1 << 1,
+#ifdef CONFIG_BCMDHD_4335_MCC
+ NL80211_WAPI_VERSION_1 = 1 << 2,
+#endif
};
/**
diff --git a/include/linux/wlan_plat.h b/include/linux/wlan_plat.h
index 40ec348..65d493f 100644
--- a/include/linux/wlan_plat.h
+++ b/include/linux/wlan_plat.h
@@ -22,6 +22,9 @@
void *(*mem_prealloc)(int section, unsigned long size);
int (*get_mac_addr)(unsigned char *buf);
void *(*get_country_code)(char *ccode);
+#ifdef CONFIG_BCMDHD_4335_MCC
+ struct msm_bus_scale_pdata *bus_scale_table;
+#endif
};
#endif