|
@@ -5,7 +5,7 @@
|
|
|
*
|
|
|
* Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
|
|
|
* Copyright 2013-2014 Intel Mobile Communications GmbH
|
|
|
- * Copyright 2015 Intel Deutschland GmbH
|
|
|
+ * Copyright 2015-2016 Intel Deutschland GmbH
|
|
|
*
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
@@ -593,6 +593,8 @@ struct survey_info {
|
|
|
s8 noise;
|
|
|
};
|
|
|
|
|
|
+#define CFG80211_MAX_WEP_KEYS 4
|
|
|
+
|
|
|
/**
|
|
|
* struct cfg80211_crypto_settings - Crypto settings
|
|
|
* @wpa_versions: indicates which, if any, WPA versions are enabled
|
|
@@ -610,6 +612,9 @@ struct survey_info {
|
|
|
* allowed through even on unauthorized ports
|
|
|
* @control_port_no_encrypt: TRUE to prevent encryption of control port
|
|
|
* protocol frames.
|
|
|
+ * @wep_keys: static WEP keys, if not NULL points to an array of
|
|
|
+ * CFG80211_MAX_WEP_KEYS WEP keys
|
|
|
+ * @wep_tx_key: key index (0..3) of the default TX static WEP key
|
|
|
*/
|
|
|
struct cfg80211_crypto_settings {
|
|
|
u32 wpa_versions;
|
|
@@ -621,6 +626,8 @@ struct cfg80211_crypto_settings {
|
|
|
bool control_port;
|
|
|
__be16 control_port_ethertype;
|
|
|
bool control_port_no_encrypt;
|
|
|
+ struct key_params *wep_keys;
|
|
|
+ int wep_tx_key;
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -2905,6 +2912,8 @@ struct cfg80211_ops {
|
|
|
* @WIPHY_FLAG_SUPPORTS_5_10_MHZ: Device supports 5 MHz and 10 MHz channels.
|
|
|
* @WIPHY_FLAG_HAS_CHANNEL_SWITCH: Device supports channel switch in
|
|
|
* beaconing mode (AP, IBSS, Mesh, ...).
|
|
|
+ * @WIPHY_FLAG_HAS_STATIC_WEP: The device supports static WEP key installation
|
|
|
+ * before connection.
|
|
|
*/
|
|
|
enum wiphy_flags {
|
|
|
/* use hole at 0 */
|
|
@@ -2930,6 +2939,7 @@ enum wiphy_flags {
|
|
|
WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL = BIT(21),
|
|
|
WIPHY_FLAG_SUPPORTS_5_10_MHZ = BIT(22),
|
|
|
WIPHY_FLAG_HAS_CHANNEL_SWITCH = BIT(23),
|
|
|
+ WIPHY_FLAG_HAS_STATIC_WEP = BIT(24),
|
|
|
};
|
|
|
|
|
|
/**
|