openwrtv3/package/mac80211/patches/531-ath9k_suppress_bogus_error_message.patch
Felix Fietkau 86a9bbe4ba mac80211: add a few tx related fixes
SVN-Revision: 25054
2011-01-20 23:35:26 +00:00

14 lines
491 B
Diff

--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -279,10 +279,8 @@ int ath_beacon_alloc(struct ath_wiphy *a
/* 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);