diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 277dfc57fde9..6cdee0b4b486 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -567,7 +567,8 @@ static void iwl_setup_rxon_timing(struct iwl_priv *priv) | |||
567 | beacon_int = iwl_adjust_beacon_interval(priv->beacon_int); | 567 | beacon_int = iwl_adjust_beacon_interval(priv->beacon_int); |
568 | priv->rxon_timing.atim_window = 0; | 568 | priv->rxon_timing.atim_window = 0; |
569 | } else { | 569 | } else { |
570 | beacon_int = iwl_adjust_beacon_interval(conf->beacon_int); | 570 | beacon_int = iwl_adjust_beacon_interval( |
571 | priv->vif->bss_conf.beacon_int); | ||
571 | 572 | ||
572 | /* TODO: we need to get atim_window from upper stack | 573 | /* TODO: we need to get atim_window from upper stack |
573 | * for now we set to 0 */ | 574 | * for now we set to 0 */ |
@@ -2267,7 +2268,7 @@ static int iwl_mac_get_stats(struct ieee80211_hw *hw, | |||
2267 | static ssize_t show_debug_level(struct device *d, | 2268 | static ssize_t show_debug_level(struct device *d, |
2268 | struct device_attribute *attr, char *buf) | 2269 | struct device_attribute *attr, char *buf) |
2269 | { | 2270 | { |
2270 | struct iwl_priv *priv = d->driver_data; | 2271 | struct iwl_priv *priv = dev_get_drvdata(d); |
2271 | 2272 | ||
2272 | return sprintf(buf, "0x%08X\n", priv->debug_level); | 2273 | return sprintf(buf, "0x%08X\n", priv->debug_level); |
2273 | } | 2274 | } |
@@ -2275,7 +2276,7 @@ static ssize_t store_debug_level(struct device *d, | |||
2275 | struct device_attribute *attr, | 2276 | struct device_attribute *attr, |
2276 | const char *buf, size_t count) | 2277 | const char *buf, size_t count) |
2277 | { | 2278 | { |
2278 | struct iwl_priv *priv = d->driver_data; | 2279 | struct iwl_priv *priv = dev_get_drvdata(d); |
2279 | unsigned long val; | 2280 | unsigned long val; |
2280 | int ret; | 2281 | int ret; |
2281 | 2282 | ||
@@ -2298,7 +2299,7 @@ static DEVICE_ATTR(debug_level, S_IWUSR | S_IRUGO, | |||
2298 | static ssize_t show_version(struct device *d, | 2299 | static ssize_t show_version(struct device *d, |
2299 | struct device_attribute *attr, char *buf) | 2300 | struct device_attribute *attr, char *buf) |
2300 | { | 2301 | { |
2301 | struct iwl_priv *priv = d->driver_data; | 2302 | struct iwl_priv *priv = dev_get_drvdata(d); |
2302 | struct iwl_alive_resp *palive = &priv->card_alive; | 2303 | struct iwl_alive_resp *palive = &priv->card_alive; |
2303 | ssize_t pos = 0; | 2304 | ssize_t pos = 0; |
2304 | u16 eeprom_ver; | 2305 | u16 eeprom_ver; |
@@ -2329,7 +2330,7 @@ static DEVICE_ATTR(version, S_IWUSR | S_IRUGO, show_version, NULL); | |||
2329 | static ssize_t show_temperature(struct device *d, | 2330 | static ssize_t show_temperature(struct device *d, |
2330 | struct device_attribute *attr, char *buf) | 2331 | struct device_attribute *attr, char *buf) |
2331 | { | 2332 | { |
2332 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | 2333 | struct iwl_priv *priv = dev_get_drvdata(d); |
2333 | 2334 | ||
2334 | if (!iwl_is_alive(priv)) | 2335 | if (!iwl_is_alive(priv)) |
2335 | return -EAGAIN; | 2336 | return -EAGAIN; |
@@ -2342,7 +2343,7 @@ static DEVICE_ATTR(temperature, S_IRUGO, show_temperature, NULL); | |||
2342 | static ssize_t show_tx_power(struct device *d, | 2343 | static ssize_t show_tx_power(struct device *d, |
2343 | struct device_attribute *attr, char *buf) | 2344 | struct device_attribute *attr, char *buf) |
2344 | { | 2345 | { |
2345 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | 2346 | struct iwl_priv *priv = dev_get_drvdata(d); |
2346 | 2347 | ||
2347 | if (!iwl_is_ready_rf(priv)) | 2348 | if (!iwl_is_ready_rf(priv)) |
2348 | return sprintf(buf, "off\n"); | 2349 | return sprintf(buf, "off\n"); |
@@ -2354,7 +2355,7 @@ static ssize_t store_tx_power(struct device *d, | |||
2354 | struct device_attribute *attr, | 2355 | struct device_attribute *attr, |
2355 | const char *buf, size_t count) | 2356 | const char *buf, size_t count) |
2356 | { | 2357 | { |
2357 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | 2358 | struct iwl_priv *priv = dev_get_drvdata(d); |
2358 | unsigned long val; | 2359 | unsigned long val; |
2359 | int ret; | 2360 | int ret; |
2360 | 2361 | ||
@@ -2372,7 +2373,7 @@ static DEVICE_ATTR(tx_power, S_IWUSR | S_IRUGO, show_tx_power, store_tx_power); | |||
2372 | static ssize_t show_flags(struct device *d, | 2373 | static ssize_t show_flags(struct device *d, |
2373 | struct device_attribute *attr, char *buf) | 2374 | struct device_attribute *attr, char *buf) |
2374 | { | 2375 | { |
2375 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | 2376 | struct iwl_priv *priv = dev_get_drvdata(d); |
2376 | 2377 | ||
2377 | return sprintf(buf, "0x%04X\n", priv->active_rxon.flags); | 2378 | return sprintf(buf, "0x%04X\n", priv->active_rxon.flags); |
2378 | } | 2379 | } |
@@ -2381,7 +2382,7 @@ static ssize_t store_flags(struct device *d, | |||
2381 | struct device_attribute *attr, | 2382 | struct device_attribute *attr, |
2382 | const char *buf, size_t count) | 2383 | const char *buf, size_t count) |
2383 | { | 2384 | { |
2384 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | 2385 | struct iwl_priv *priv = dev_get_drvdata(d); |
2385 | unsigned long val; | 2386 | unsigned long val; |
2386 | u32 flags; | 2387 | u32 flags; |
2387 | int ret = strict_strtoul(buf, 0, &val); | 2388 | int ret = strict_strtoul(buf, 0, &val); |
@@ -2410,7 +2411,7 @@ static DEVICE_ATTR(flags, S_IWUSR | S_IRUGO, show_flags, store_flags); | |||
2410 | static ssize_t show_filter_flags(struct device *d, | 2411 | static ssize_t show_filter_flags(struct device *d, |
2411 | struct device_attribute *attr, char *buf) | 2412 | struct device_attribute *attr, char *buf) |
2412 | { | 2413 | { |
2413 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | 2414 | struct iwl_priv *priv = dev_get_drvdata(d); |
2414 | 2415 | ||
2415 | return sprintf(buf, "0x%04X\n", | 2416 | return sprintf(buf, "0x%04X\n", |
2416 | le32_to_cpu(priv->active_rxon.filter_flags)); | 2417 | le32_to_cpu(priv->active_rxon.filter_flags)); |
@@ -2420,7 +2421,7 @@ static ssize_t store_filter_flags(struct device *d, | |||
2420 | struct device_attribute *attr, | 2421 | struct device_attribute *attr, |
2421 | const char *buf, size_t count) | 2422 | const char *buf, size_t count) |
2422 | { | 2423 | { |
2423 | struct iwl_priv *priv = (struct iwl_priv *)d->driver_data; | 2424 | struct iwl_priv *priv = dev_get_drvdata(d); |
2424 | unsigned long val; | 2425 | unsigned long val; |
2425 | u32 filter_flags; | 2426 | u32 filter_flags; |
2426 | int ret = strict_strtoul(buf, 0, &val); | 2427 | int ret = strict_strtoul(buf, 0, &val); |
@@ -2622,7 +2623,6 @@ static struct ieee80211_ops iwl_hw_ops = { | |||
2622 | .add_interface = iwl_mac_add_interface, | 2623 | .add_interface = iwl_mac_add_interface, |
2623 | .remove_interface = iwl_mac_remove_interface, | 2624 | .remove_interface = iwl_mac_remove_interface, |
2624 | .config = iwl_mac_config, | 2625 | .config = iwl_mac_config, |
2625 | .config_interface = iwl_mac_config_interface, | ||
2626 | .configure_filter = iwl_configure_filter, | 2626 | .configure_filter = iwl_configure_filter, |
2627 | .set_key = iwl_mac_set_key, | 2627 | .set_key = iwl_mac_set_key, |
2628 | .update_tkip_key = iwl_mac_update_tkip_key, | 2628 | .update_tkip_key = iwl_mac_update_tkip_key, |