aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/main.c3
-rw-r--r--net/mac80211/mlme.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index b182f018a187..5c5396edad32 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -1707,7 +1707,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
1707 1707
1708 debugfs_hw_add(local); 1708 debugfs_hw_add(local);
1709 1709
1710 local->hw.conf.beacon_int = 1000; 1710 if (local->hw.conf.beacon_int < 10)
1711 local->hw.conf.beacon_int = 100;
1711 1712
1712 local->wstats_flags |= local->hw.flags & (IEEE80211_HW_SIGNAL_UNSPEC | 1713 local->wstats_flags |= local->hw.flags & (IEEE80211_HW_SIGNAL_UNSPEC |
1713 IEEE80211_HW_SIGNAL_DB | 1714 IEEE80211_HW_SIGNAL_DB |
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 7f05820dc629..46f203740834 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3583,7 +3583,7 @@ static int ieee80211_sta_create_ibss(struct net_device *dev,
3583 sband = local->hw.wiphy->bands[bss->band]; 3583 sband = local->hw.wiphy->bands[bss->band];
3584 3584
3585 if (local->hw.conf.beacon_int == 0) 3585 if (local->hw.conf.beacon_int == 0)
3586 local->hw.conf.beacon_int = 10000; 3586 local->hw.conf.beacon_int = 100;
3587 bss->beacon_int = local->hw.conf.beacon_int; 3587 bss->beacon_int = local->hw.conf.beacon_int;
3588 bss->last_update = jiffies; 3588 bss->last_update = jiffies;
3589 bss->capability = WLAN_CAPABILITY_IBSS; 3589 bss->capability = WLAN_CAPABILITY_IBSS;