diff options
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw.h | 23 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2100.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2200.c | 4 |
3 files changed, 31 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw.h b/drivers/net/wireless/ipw2x00/ipw.h new file mode 100644 index 000000000000..4007bf5ed6f3 --- /dev/null +++ b/drivers/net/wireless/ipw2x00/ipw.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * Intel Pro/Wireless 2100, 2200BG, 2915ABG network connection driver | ||
3 | * | ||
4 | * Copyright 2012 Stanislav Yakovlev <stas.yakovlev@gmail.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifndef __IPW_H__ | ||
12 | #define __IPW_H__ | ||
13 | |||
14 | #include <linux/ieee80211.h> | ||
15 | |||
16 | static const u32 ipw_cipher_suites[] = { | ||
17 | WLAN_CIPHER_SUITE_WEP40, | ||
18 | WLAN_CIPHER_SUITE_WEP104, | ||
19 | WLAN_CIPHER_SUITE_TKIP, | ||
20 | WLAN_CIPHER_SUITE_CCMP, | ||
21 | }; | ||
22 | |||
23 | #endif | ||
diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c index d8d804e3a4b4..819368788319 100644 --- a/drivers/net/wireless/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/ipw2x00/ipw2100.c | |||
@@ -166,6 +166,7 @@ that only one external action is invoked at a time. | |||
166 | #include <net/lib80211.h> | 166 | #include <net/lib80211.h> |
167 | 167 | ||
168 | #include "ipw2100.h" | 168 | #include "ipw2100.h" |
169 | #include "ipw.h" | ||
169 | 170 | ||
170 | #define IPW2100_VERSION "git-1.2.2" | 171 | #define IPW2100_VERSION "git-1.2.2" |
171 | 172 | ||
@@ -1946,6 +1947,9 @@ static int ipw2100_wdev_init(struct net_device *dev) | |||
1946 | wdev->wiphy->bands[IEEE80211_BAND_2GHZ] = bg_band; | 1947 | wdev->wiphy->bands[IEEE80211_BAND_2GHZ] = bg_band; |
1947 | } | 1948 | } |
1948 | 1949 | ||
1950 | wdev->wiphy->cipher_suites = ipw_cipher_suites; | ||
1951 | wdev->wiphy->n_cipher_suites = ARRAY_SIZE(ipw_cipher_suites); | ||
1952 | |||
1949 | set_wiphy_dev(wdev->wiphy, &priv->pci_dev->dev); | 1953 | set_wiphy_dev(wdev->wiphy, &priv->pci_dev->dev); |
1950 | if (wiphy_register(wdev->wiphy)) { | 1954 | if (wiphy_register(wdev->wiphy)) { |
1951 | ipw2100_down(priv); | 1955 | ipw2100_down(priv); |
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index 77c5d2f5115a..f37d315f942f 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
35 | #include <net/cfg80211-wext.h> | 35 | #include <net/cfg80211-wext.h> |
36 | #include "ipw2200.h" | 36 | #include "ipw2200.h" |
37 | #include "ipw.h" | ||
37 | 38 | ||
38 | 39 | ||
39 | #ifndef KBUILD_EXTMOD | 40 | #ifndef KBUILD_EXTMOD |
@@ -11532,6 +11533,9 @@ static int ipw_wdev_init(struct net_device *dev) | |||
11532 | wdev->wiphy->bands[IEEE80211_BAND_5GHZ] = a_band; | 11533 | wdev->wiphy->bands[IEEE80211_BAND_5GHZ] = a_band; |
11533 | } | 11534 | } |
11534 | 11535 | ||
11536 | wdev->wiphy->cipher_suites = ipw_cipher_suites; | ||
11537 | wdev->wiphy->n_cipher_suites = ARRAY_SIZE(ipw_cipher_suites); | ||
11538 | |||
11535 | set_wiphy_dev(wdev->wiphy, &priv->pci_dev->dev); | 11539 | set_wiphy_dev(wdev->wiphy, &priv->pci_dev->dev); |
11536 | 11540 | ||
11537 | /* With that information in place, we can now register the wiphy... */ | 11541 | /* With that information in place, we can now register the wiphy... */ |