diff options
author | Zhu Yi <yi.zhu@intel.com> | 2009-07-16 05:34:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 15:05:20 -0400 |
commit | 49b7772776359b8306ce740bfc52d32b344adc83 (patch) | |
tree | dbc8c546dea321b3795d0a3f888e49c0bff0d8b1 /drivers/net/wireless/iwmc3200wifi/cfg80211.c | |
parent | 3a0e4851c97328ee455a57cb3e4097bb43934a87 (diff) |
iwmc3200wifi: set cipher_suites before registering wiphy
We need to specify all the cipher suites we supported. Otherwise
cfg80211_validate_key_settings() will fail when we are setting
keys.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/cfg80211.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/cfg80211.c b/drivers/net/wireless/iwmc3200wifi/cfg80211.c index 54bebba8e27e..0aa389564c71 100644 --- a/drivers/net/wireless/iwmc3200wifi/cfg80211.c +++ b/drivers/net/wireless/iwmc3200wifi/cfg80211.c | |||
@@ -558,6 +558,13 @@ static struct cfg80211_ops iwm_cfg80211_ops = { | |||
558 | .set_power_mgmt = iwm_cfg80211_set_power_mgmt, | 558 | .set_power_mgmt = iwm_cfg80211_set_power_mgmt, |
559 | }; | 559 | }; |
560 | 560 | ||
561 | static const u32 cipher_suites[] = { | ||
562 | WLAN_CIPHER_SUITE_WEP40, | ||
563 | WLAN_CIPHER_SUITE_WEP104, | ||
564 | WLAN_CIPHER_SUITE_TKIP, | ||
565 | WLAN_CIPHER_SUITE_CCMP, | ||
566 | }; | ||
567 | |||
561 | struct wireless_dev *iwm_wdev_alloc(int sizeof_bus, struct device *dev) | 568 | struct wireless_dev *iwm_wdev_alloc(int sizeof_bus, struct device *dev) |
562 | { | 569 | { |
563 | int ret = 0; | 570 | int ret = 0; |
@@ -600,6 +607,9 @@ struct wireless_dev *iwm_wdev_alloc(int sizeof_bus, struct device *dev) | |||
600 | wdev->wiphy->bands[IEEE80211_BAND_5GHZ] = &iwm_band_5ghz; | 607 | wdev->wiphy->bands[IEEE80211_BAND_5GHZ] = &iwm_band_5ghz; |
601 | wdev->wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; | 608 | wdev->wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; |
602 | 609 | ||
610 | wdev->wiphy->cipher_suites = cipher_suites; | ||
611 | wdev->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites); | ||
612 | |||
603 | ret = wiphy_register(wdev->wiphy); | 613 | ret = wiphy_register(wdev->wiphy); |
604 | if (ret < 0) { | 614 | if (ret < 0) { |
605 | dev_err(dev, "Couldn't register wiphy device\n"); | 615 | dev_err(dev, "Couldn't register wiphy device\n"); |