mac80211: add a few tx related fixes
[openwrt.git] / package / mac80211 / patches / 531-ath9k_suppress_bogus_error_message.patch
1 --- a/drivers/net/wireless/ath/ath9k/beacon.c
2 +++ b/drivers/net/wireless/ath/ath9k/beacon.c
3 @@ -279,10 +279,8 @@ int ath_beacon_alloc(struct ath_wiphy *a
4  
5         /* NB: the beacon data buffer must be 32-bit aligned. */
6         skb = ieee80211_beacon_get(sc->hw, vif);
7 -       if (skb == NULL) {
8 -               ath_err(common, "ieee80211_beacon_get failed\n");
9 +       if (skb == NULL)
10                 return -ENOMEM;
11 -       }
12  
13         tstamp = ((struct ieee80211_mgmt *)skb->data)->u.beacon.timestamp;
14         sc->beacon.bc_tstamp = le64_to_cpu(tstamp);