ath9k_htc: use ath_is_mybeacon
authorOleksij Rempel <linux@rempel-privat.de>
Wed, 15 Jan 2014 16:07:16 +0000 (17:07 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 16 Jan 2014 19:55:45 +0000 (14:55 -0500)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c

index b41e008298dce90da1cfb131072d75242faebf06..12e0f32a4905b64bcfaaa7b5ae3b9972d6069c34 100644 (file)
@@ -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))