diff options
| -rw-r--r-- | drivers/net/wireless/ath5k/base.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index 7bc012fca059..0676c6d84383 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
| @@ -2751,6 +2751,11 @@ static int ath5k_add_interface(struct ieee80211_hw *hw, | |||
| 2751 | ret = -EOPNOTSUPP; | 2751 | ret = -EOPNOTSUPP; |
| 2752 | goto end; | 2752 | goto end; |
| 2753 | } | 2753 | } |
| 2754 | |||
| 2755 | /* Set to a reasonable value. Note that this will | ||
| 2756 | * be set to mac80211's value at ath5k_config(). */ | ||
| 2757 | sc->bintval = 1000; | ||
| 2758 | |||
| 2754 | ret = 0; | 2759 | ret = 0; |
| 2755 | end: | 2760 | end: |
| 2756 | mutex_unlock(&sc->lock); | 2761 | mutex_unlock(&sc->lock); |
| @@ -2795,9 +2800,6 @@ ath5k_config_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | |||
| 2795 | struct ath5k_hw *ah = sc->ah; | 2800 | struct ath5k_hw *ah = sc->ah; |
| 2796 | int ret; | 2801 | int ret; |
| 2797 | 2802 | ||
| 2798 | /* Set to a reasonable value. Note that this will | ||
| 2799 | * be set to mac80211's value at ath5k_config(). */ | ||
| 2800 | sc->bintval = 1000; | ||
| 2801 | mutex_lock(&sc->lock); | 2803 | mutex_lock(&sc->lock); |
| 2802 | if (sc->vif != vif) { | 2804 | if (sc->vif != vif) { |
| 2803 | ret = -EIO; | 2805 | ret = -EIO; |
