aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2013-05-29 14:51:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-05-29 14:51:50 -0400
commit933faa43ab9c1545c53ea082a8e4e1d1859568aa (patch)
tree933a7e52081af4cb32699587cb79173537f6c638 /drivers
parent531efffc3e3ff52d732c8fa6f32e084e9c447612 (diff)
parent6abb9cb99f33b20c2f32f18a3ae9cc7543e46edb (diff)
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlegacy/commands.h8
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/commands.h8
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mac80211.c14
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/tx.c6
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c22
5 files changed, 14 insertions, 44 deletions
diff --git a/drivers/net/wireless/iwlegacy/commands.h b/drivers/net/wireless/iwlegacy/commands.h
index 3b6c99400892..048421511988 100644
--- a/drivers/net/wireless/iwlegacy/commands.h
+++ b/drivers/net/wireless/iwlegacy/commands.h
@@ -1348,14 +1348,6 @@ struct il_rx_mpdu_res_start {
1348#define TX_CMD_SEC_KEY128 0x08 1348#define TX_CMD_SEC_KEY128 0x08
1349 1349
1350/* 1350/*
1351 * security overhead sizes
1352 */
1353#define WEP_IV_LEN 4
1354#define WEP_ICV_LEN 4
1355#define CCMP_MIC_LEN 8
1356#define TKIP_ICV_LEN 4
1357
1358/*
1359 * C_TX = 0x1c (command) 1351 * C_TX = 0x1c (command)
1360 */ 1352 */
1361 1353
diff --git a/drivers/net/wireless/iwlwifi/dvm/commands.h b/drivers/net/wireless/iwlwifi/dvm/commands.h
index 19f3ce7646ab..ebdac909f0cd 100644
--- a/drivers/net/wireless/iwlwifi/dvm/commands.h
+++ b/drivers/net/wireless/iwlwifi/dvm/commands.h
@@ -1221,14 +1221,6 @@ struct iwl_rx_mpdu_res_start {
1221#define TX_CMD_SEC_KEY128 0x08 1221#define TX_CMD_SEC_KEY128 0x08
1222 1222
1223/* 1223/*
1224 * security overhead sizes
1225 */
1226#define WEP_IV_LEN 4
1227#define WEP_ICV_LEN 4
1228#define CCMP_MIC_LEN 8
1229#define TKIP_ICV_LEN 4
1230
1231/*
1232 * REPLY_TX = 0x1c (command) 1224 * REPLY_TX = 0x1c (command)
1233 */ 1225 */
1234 1226
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
index dc50020d746d..12337aac2947 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
@@ -84,15 +84,6 @@ static const struct ieee80211_iface_limit iwl_mvm_limits[] = {
84 .types = BIT(NL80211_IFTYPE_STATION) | 84 .types = BIT(NL80211_IFTYPE_STATION) |
85 BIT(NL80211_IFTYPE_AP), 85 BIT(NL80211_IFTYPE_AP),
86 }, 86 },
87 {
88 .max = 1,
89 .types = BIT(NL80211_IFTYPE_P2P_CLIENT) |
90 BIT(NL80211_IFTYPE_P2P_GO),
91 },
92 {
93 .max = 1,
94 .types = BIT(NL80211_IFTYPE_P2P_DEVICE),
95 },
96}; 87};
97 88
98static const struct ieee80211_iface_combination iwl_mvm_iface_combinations[] = { 89static const struct ieee80211_iface_combination iwl_mvm_iface_combinations[] = {
@@ -173,10 +164,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
173 hw->chanctx_data_size = sizeof(u16); 164 hw->chanctx_data_size = sizeof(u16);
174 165
175 hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | 166 hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
176 BIT(NL80211_IFTYPE_P2P_CLIENT) | 167 BIT(NL80211_IFTYPE_AP);
177 BIT(NL80211_IFTYPE_AP) |
178 BIT(NL80211_IFTYPE_P2P_GO) |
179 BIT(NL80211_IFTYPE_P2P_DEVICE);
180 168
181 hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY | 169 hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY |
182 WIPHY_FLAG_DISABLE_BEACON_HINTS | 170 WIPHY_FLAG_DISABLE_BEACON_HINTS |
diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c
index bf5f8246385e..a35c6aefbc3e 100644
--- a/drivers/net/wireless/iwlwifi/pcie/tx.c
+++ b/drivers/net/wireless/iwlwifi/pcie/tx.c
@@ -224,13 +224,13 @@ static void iwl_pcie_txq_update_byte_cnt_tbl(struct iwl_trans *trans,
224 224
225 switch (sec_ctl & TX_CMD_SEC_MSK) { 225 switch (sec_ctl & TX_CMD_SEC_MSK) {
226 case TX_CMD_SEC_CCM: 226 case TX_CMD_SEC_CCM:
227 len += CCMP_MIC_LEN; 227 len += IEEE80211_CCMP_MIC_LEN;
228 break; 228 break;
229 case TX_CMD_SEC_TKIP: 229 case TX_CMD_SEC_TKIP:
230 len += TKIP_ICV_LEN; 230 len += IEEE80211_TKIP_ICV_LEN;
231 break; 231 break;
232 case TX_CMD_SEC_WEP: 232 case TX_CMD_SEC_WEP:
233 len += WEP_IV_LEN + WEP_ICV_LEN; 233 len += IEEE80211_WEP_IV_LEN + IEEE80211_WEP_ICV_LEN;
234 break; 234 break;
235 } 235 }
236 236
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index b878a32e7a98..69bbf6fdd2d3 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -1723,11 +1723,11 @@ static void mac80211_hwsim_free(void)
1723 class_destroy(hwsim_class); 1723 class_destroy(hwsim_class);
1724} 1724}
1725 1725
1726 1726static struct platform_driver mac80211_hwsim_driver = {
1727static struct device_driver mac80211_hwsim_driver = { 1727 .driver = {
1728 .name = "mac80211_hwsim", 1728 .name = "mac80211_hwsim",
1729 .bus = &platform_bus_type, 1729 .owner = THIS_MODULE,
1730 .owner = THIS_MODULE, 1730 },
1731}; 1731};
1732 1732
1733static const struct net_device_ops hwsim_netdev_ops = { 1733static const struct net_device_ops hwsim_netdev_ops = {
@@ -2169,7 +2169,6 @@ static const struct ieee80211_iface_limit hwsim_if_limits[] = {
2169#endif 2169#endif
2170 BIT(NL80211_IFTYPE_AP) | 2170 BIT(NL80211_IFTYPE_AP) |
2171 BIT(NL80211_IFTYPE_P2P_GO) }, 2171 BIT(NL80211_IFTYPE_P2P_GO) },
2172 { .max = 1, .types = BIT(NL80211_IFTYPE_P2P_DEVICE) },
2173}; 2172};
2174 2173
2175static struct ieee80211_iface_combination hwsim_if_comb = { 2174static struct ieee80211_iface_combination hwsim_if_comb = {
@@ -2219,7 +2218,7 @@ static int __init init_mac80211_hwsim(void)
2219 spin_lock_init(&hwsim_radio_lock); 2218 spin_lock_init(&hwsim_radio_lock);
2220 INIT_LIST_HEAD(&hwsim_radios); 2219 INIT_LIST_HEAD(&hwsim_radios);
2221 2220
2222 err = driver_register(&mac80211_hwsim_driver); 2221 err = platform_driver_register(&mac80211_hwsim_driver);
2223 if (err) 2222 if (err)
2224 return err; 2223 return err;
2225 2224
@@ -2254,7 +2253,7 @@ static int __init init_mac80211_hwsim(void)
2254 err = -ENOMEM; 2253 err = -ENOMEM;
2255 goto failed_drvdata; 2254 goto failed_drvdata;
2256 } 2255 }
2257 data->dev->driver = &mac80211_hwsim_driver; 2256 data->dev->driver = &mac80211_hwsim_driver.driver;
2258 err = device_bind_driver(data->dev); 2257 err = device_bind_driver(data->dev);
2259 if (err != 0) { 2258 if (err != 0) {
2260 printk(KERN_DEBUG 2259 printk(KERN_DEBUG
@@ -2295,8 +2294,7 @@ static int __init init_mac80211_hwsim(void)
2295 BIT(NL80211_IFTYPE_P2P_CLIENT) | 2294 BIT(NL80211_IFTYPE_P2P_CLIENT) |
2296 BIT(NL80211_IFTYPE_P2P_GO) | 2295 BIT(NL80211_IFTYPE_P2P_GO) |
2297 BIT(NL80211_IFTYPE_ADHOC) | 2296 BIT(NL80211_IFTYPE_ADHOC) |
2298 BIT(NL80211_IFTYPE_MESH_POINT) | 2297 BIT(NL80211_IFTYPE_MESH_POINT);
2299 BIT(NL80211_IFTYPE_P2P_DEVICE);
2300 2298
2301 hw->flags = IEEE80211_HW_MFP_CAPABLE | 2299 hw->flags = IEEE80211_HW_MFP_CAPABLE |
2302 IEEE80211_HW_SIGNAL_DBM | 2300 IEEE80211_HW_SIGNAL_DBM |
@@ -2564,7 +2562,7 @@ failed_drvdata:
2564failed: 2562failed:
2565 mac80211_hwsim_free(); 2563 mac80211_hwsim_free();
2566failed_unregister_driver: 2564failed_unregister_driver:
2567 driver_unregister(&mac80211_hwsim_driver); 2565 platform_driver_unregister(&mac80211_hwsim_driver);
2568 return err; 2566 return err;
2569} 2567}
2570module_init(init_mac80211_hwsim); 2568module_init(init_mac80211_hwsim);
@@ -2577,6 +2575,6 @@ static void __exit exit_mac80211_hwsim(void)
2577 2575
2578 mac80211_hwsim_free(); 2576 mac80211_hwsim_free();
2579 unregister_netdev(hwsim_mon); 2577 unregister_netdev(hwsim_mon);
2580 driver_unregister(&mac80211_hwsim_driver); 2578 platform_driver_unregister(&mac80211_hwsim_driver);
2581} 2579}
2582module_exit(exit_mac80211_hwsim); 2580module_exit(exit_mac80211_hwsim);