mac80211: add missing return code checks in AQL improvements
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / subsys / 312-mac80211-factor-out-code-to-look-up-the-average-pack.patch
index 105bbe2529794ee209fb7decbea80cc0a749d73f..06db852c30469fa8edfed0b0048b435cab4a4709 100644 (file)
@@ -104,7 +104,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  }
  EXPORT_SYMBOL_GPL(ieee80211_calc_rx_airtime);
  
-@@ -530,46 +546,56 @@ static bool ieee80211_fill_rate_info(str
+@@ -530,46 +546,57 @@ static bool ieee80211_fill_rate_info(str
        return false;
  }
  
@@ -179,7 +179,8 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 +{
 +      struct ieee80211_rx_status stat;
 +
-+      ieee80211_fill_rx_status(&stat, hw, rate, ri, band, len);
++      if (ieee80211_fill_rx_status(&stat, hw, rate, ri, band, len))
++              return 0;
 +
        return ieee80211_calc_rx_airtime(hw, &stat, len);
  }