ssb: activate CONFIG_SSB_BLOCKIO in the kernel and not in compat-wireless.
[openwrt/openwrt.git] / package / mac80211 / patches / 550-ath9k_no_multi_desc_frames.patch
1 --- a/drivers/net/wireless/ath/ath9k/common.c
2 +++ b/drivers/net/wireless/ath/ath9k/common.c
3 @@ -57,13 +57,19 @@ static bool ath9k_rx_accept(struct ath_c
4 * rs_more indicates chained descriptors which can be used
5 * to link buffers together for a sort of scatter-gather
6 * operation.
7 - *
8 + * reject the frame, we don't support scatter-gather yet and
9 + * the frame is probably corrupt anyway
10 + */
11 + if (rx_stats->rs_more)
12 + return false;
13 +
14 + /*
15 * The rx_stats->rs_status will not be set until the end of the
16 * chained descriptors so it can be ignored if rs_more is set. The
17 * rs_more will be false at the last element of the chained
18 * descriptors.
19 */
20 - if (!rx_stats->rs_more && rx_stats->rs_status != 0) {
21 + if (rx_stats->rs_status != 0) {
22 if (rx_stats->rs_status & ATH9K_RXERR_CRC)
23 rxs->flag |= RX_FLAG_FAILED_FCS_CRC;
24 if (rx_stats->rs_status & ATH9K_RXERR_PHY)