prima: WLAN Driver Release 3.1.7.9
This is the initial release of the Prima WLAN Driver
diff --git a/CORE/HDD/inc/wlan_hdd_assoc.h b/CORE/HDD/inc/wlan_hdd_assoc.h
new file mode 100644
index 0000000..f3e73c4
--- /dev/null
+++ b/CORE/HDD/inc/wlan_hdd_assoc.h
@@ -0,0 +1,107 @@
+/*
+ * Copyright (c) 2012, Code Aurora Forum. All rights reserved.
+ *
+ * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
+ *
+ *
+ * Permission to use, copy, modify, and/or distribute this software for
+ * any purpose with or without fee is hereby granted, provided that the
+ * above copyright notice and this permission notice appear in all
+ * copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
+ * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#if !defined( HDD_CONNECTION_H__ )
+#define HDD_CONNECTION_H__
+#include <wlan_hdd_mib.h>
+#define HDD_MAX_NUM_IBSS_STA ( 4 )
+#define TKIP_COUNTER_MEASURE_STARTED 1
+#define TKIP_COUNTER_MEASURE_STOPED 0
+/* Timeout (in ms) for Link to Up before Registering Station */
+#define ASSOC_LINKUP_TIMEOUT 60
+typedef enum
+{
+ /** Not associated in Infra or participating in an IBSS / Ad-hoc network.*/
+ eConnectionState_NotConnected,
+ /** Associated in an Infrastructure network.*/
+ eConnectionState_Associated,
+
+ /** Participating in an IBSS network though disconnected (no partner stations
+ in the IBSS).*/
+ eConnectionState_IbssDisconnected,
+
+ /** Participating in an IBSS network with partner stations also present*/
+ eConnectionState_IbssConnected
+
+}eConnectionState;
+/**This structure stores the connection information */
+typedef struct connection_info_s
+{
+ /** connection state of the NIC.*/
+ eConnectionState connState;
+
+ /** BSS type of the current connection. Comes from the MIB at the
+ time the connect request is issued in combination with the BssDescription
+ from the associated entity.*/
+
+ eMib_dot11DesiredBssType connDot11DesiredBssType;
+ /** BSSID */
+ tCsrBssid bssId;
+
+ /** SSID Info*/
+ tCsrSSIDInfo SSID;
+
+ /** Station ID */
+ v_U8_t staId[ HDD_MAX_NUM_IBSS_STA ];
+ /** Peer Mac Address of the IBSS Stations */
+ v_MACADDR_t peerMacAddress[ HDD_MAX_NUM_IBSS_STA ];
+ /** Auth Type */
+ eCsrAuthType authType;
+
+ /** Unicast Encryption Type */
+ eCsrEncryptionType ucEncryptionType;
+
+ /** Multicast Encryption Type */
+ eCsrEncryptionType mcEncryptionType;
+
+ /** Keys */
+ tCsrKeys Keys;
+
+ /** Operation Channel */
+ v_U8_t operationChannel;
+
+ /** Remembers authenticated state */
+ v_U8_t uIsAuthenticated;
+
+}connection_info_t;
+/*Forward declaration of Adapter*/
+typedef struct hdd_adapter_s hdd_adapter_t;
+typedef struct hdd_context_s hdd_context_t;
+typedef struct hdd_station_ctx hdd_station_ctx_t;
+typedef struct hdd_ap_ctx_s hdd_ap_ctx_t;
+#ifdef CONFIG_CFG80211
+typedef struct hdd_mon_ctx_s hdd_mon_ctx_t;
+#endif
+
+
+extern v_BOOL_t hdd_connIsConnected( hdd_station_ctx_t *pHddStaCtx );
+extern eHalStatus hdd_smeRoamCallback( void *pContext, tCsrRoamInfo *pRoamInfo, v_U32_t roamId,
+ eRoamCmdStatus roamStatus, eCsrRoamResult roamResult );
+
+extern v_VOID_t hdd_connSaveConnectInfo( hdd_adapter_t *pAdapter, tCsrRoamInfo *pRoamInfo, eCsrRoamBssType eBssType );
+
+inline v_BOOL_t hdd_connGetConnectedBssType( hdd_station_ctx_t *pHddCtx,
+ eMib_dot11DesiredBssType *pConnectedBssType );
+
+int hdd_SetGENIEToCsr( hdd_adapter_t *pAdapter, eCsrAuthType *RSNAuthType );
+
+int hdd_set_csr_auth_type( hdd_adapter_t *pAdapter, eCsrAuthType RSNAuthType );
+#endif