diff options
Diffstat (limited to 'drivers/net/wireless/p54/main.c')
| -rw-r--r-- | drivers/net/wireless/p54/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index 97aeff0edb84..b9250d75d253 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c | |||
| @@ -305,9 +305,9 @@ static void p54_reset_stats(struct p54_common *priv) | |||
| 305 | struct survey_info *info = &priv->survey[chan->hw_value]; | 305 | struct survey_info *info = &priv->survey[chan->hw_value]; |
| 306 | 306 | ||
| 307 | /* only reset channel statistics, don't touch .filled, etc. */ | 307 | /* only reset channel statistics, don't touch .filled, etc. */ |
| 308 | info->channel_time = 0; | 308 | info->time = 0; |
| 309 | info->channel_time_busy = 0; | 309 | info->time_busy = 0; |
| 310 | info->channel_time_tx = 0; | 310 | info->time_tx = 0; |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | priv->update_stats = true; | 313 | priv->update_stats = true; |
| @@ -575,6 +575,8 @@ static int p54_set_key(struct ieee80211_hw *dev, enum set_key_cmd cmd, | |||
| 575 | key->hw_key_idx = 0xff; | 575 | key->hw_key_idx = 0xff; |
| 576 | goto out_unlock; | 576 | goto out_unlock; |
| 577 | } | 577 | } |
| 578 | |||
| 579 | key->flags |= IEEE80211_KEY_FLAG_RESERVE_TAILROOM; | ||
| 578 | } else { | 580 | } else { |
| 579 | slot = key->hw_key_idx; | 581 | slot = key->hw_key_idx; |
| 580 | 582 | ||
| @@ -634,7 +636,7 @@ static int p54_get_survey(struct ieee80211_hw *dev, int idx, | |||
| 634 | 636 | ||
| 635 | if (in_use) { | 637 | if (in_use) { |
| 636 | /* test if the reported statistics are valid. */ | 638 | /* test if the reported statistics are valid. */ |
| 637 | if (survey->channel_time != 0) { | 639 | if (survey->time != 0) { |
| 638 | survey->filled |= SURVEY_INFO_IN_USE; | 640 | survey->filled |= SURVEY_INFO_IN_USE; |
| 639 | } else { | 641 | } else { |
| 640 | /* | 642 | /* |
