ath9k: remove a bogus error message
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Jan 2011 20:57:30 +0000 (21:57 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Jan 2011 21:21:36 +0000 (16:21 -0500)
When beacons are being added or removed for an interface, ieee80211_beacon_get
will sometimes not return a beacon. This is normal and should not result in
useless logspam.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/beacon.c

index 8de591e5b8510ac386847c4ae3fcfcafe731d160..ab8c05cf62f3fbe8d41c080efc1fae71701a3f09 100644 (file)
@@ -279,10 +279,8 @@ int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif)
 
        /* NB: the beacon data buffer must be 32-bit aligned. */
        skb = ieee80211_beacon_get(sc->hw, vif);
-       if (skb == NULL) {
-               ath_err(common, "ieee80211_beacon_get failed\n");
+       if (skb == NULL)
                return -ENOMEM;
-       }
 
        tstamp = ((struct ieee80211_mgmt *)skb->data)->u.beacon.timestamp;
        sc->beacon.bc_tstamp = le64_to_cpu(tstamp);