diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/base.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c index ff784072fb42..93bb384eb001 100644 --- a/drivers/net/wireless/rtlwifi/base.c +++ b/drivers/net/wireless/rtlwifi/base.c | |||
@@ -353,7 +353,6 @@ static void _rtl_init_mac80211(struct ieee80211_hw *hw) | |||
353 | 353 | ||
354 | /* TODO: Correct this value for our hw */ | 354 | /* TODO: Correct this value for our hw */ |
355 | /* TODO: define these hard code value */ | 355 | /* TODO: define these hard code value */ |
356 | hw->channel_change_time = 100; | ||
357 | hw->max_listen_interval = 10; | 356 | hw->max_listen_interval = 10; |
358 | hw->max_rate_tries = 4; | 357 | hw->max_rate_tries = 4; |
359 | /* hw->max_rates = 1; */ | 358 | /* hw->max_rates = 1; */ |
@@ -1293,7 +1292,7 @@ void rtl_beacon_statistic(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
1293 | return; | 1292 | return; |
1294 | 1293 | ||
1295 | /* and only beacons from the associated BSSID, please */ | 1294 | /* and only beacons from the associated BSSID, please */ |
1296 | if (!ether_addr_equal(hdr->addr3, rtlpriv->mac80211.bssid)) | 1295 | if (!ether_addr_equal_64bits(hdr->addr3, rtlpriv->mac80211.bssid)) |
1297 | return; | 1296 | return; |
1298 | 1297 | ||
1299 | rtlpriv->link_info.bcn_rx_inperiod++; | 1298 | rtlpriv->link_info.bcn_rx_inperiod++; |
@@ -1437,7 +1436,8 @@ void rtl_watchdog_wq_callback(void *data) | |||
1437 | /* if we can't recv beacon for 6s, we should | 1436 | /* if we can't recv beacon for 6s, we should |
1438 | * reconnect this AP | 1437 | * reconnect this AP |
1439 | */ | 1438 | */ |
1440 | if (rtlpriv->link_info.roam_times >= 3) { | 1439 | if ((rtlpriv->link_info.roam_times >= 3) && |
1440 | !is_zero_ether_addr(rtlpriv->mac80211.bssid)) { | ||
1441 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, | 1441 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, |
1442 | "AP off, try to reconnect now\n"); | 1442 | "AP off, try to reconnect now\n"); |
1443 | rtlpriv->link_info.roam_times = 0; | 1443 | rtlpriv->link_info.roam_times = 0; |
@@ -1780,7 +1780,7 @@ void rtl_recognize_peer(struct ieee80211_hw *hw, u8 *data, unsigned int len) | |||
1780 | return; | 1780 | return; |
1781 | 1781 | ||
1782 | /* and only beacons from the associated BSSID, please */ | 1782 | /* and only beacons from the associated BSSID, please */ |
1783 | if (!ether_addr_equal(hdr->addr3, rtlpriv->mac80211.bssid)) | 1783 | if (!ether_addr_equal_64bits(hdr->addr3, rtlpriv->mac80211.bssid)) |
1784 | return; | 1784 | return; |
1785 | 1785 | ||
1786 | if (rtl_find_221_ie(hw, data, len)) | 1786 | if (rtl_find_221_ie(hw, data, len)) |