mirror of https://gitee.com/openkylin/linux.git
ath9k_htc: use ath_is_mybeacon
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
1cc47a5b24
commit
aeb0e356ec
|
@ -1075,9 +1075,7 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
|
|||
|
||||
last_rssi = priv->rx.last_rssi;
|
||||
|
||||
if (ieee80211_is_beacon(hdr->frame_control) &&
|
||||
!is_zero_ether_addr(common->curbssid) &&
|
||||
ether_addr_equal_64bits(hdr->addr3, common->curbssid)) {
|
||||
if (ath_is_mybeacon(common, hdr)) {
|
||||
s8 rssi = rxbuf->rxstatus.rs_rssi;
|
||||
|
||||
if (likely(last_rssi != ATH_RSSI_DUMMY_MARKER))
|
||||
|
|
Loading…
Reference in New Issue