• Yu Wang's avatar
    ath10k: add amsdu support for monitor mode · 85bd0107
    Yu Wang authored
    When processing HTT_T2H_MSG_TYPE_RX_IN_ORD_PADDR_IND, if the length of a msdu
    is larger than the tailroom of the rx skb, skb_over_panic issue will happen
    when calling skb_put.  In monitor mode, amsdu will be handled in this path, and
    msdu_len of the first msdu_desc is the length of the entire amsdu, which might
    be larger than the maximum length of a skb, in such case, it will hit the issue
    upon.
    
    To fix this issue, process msdu list separately for monitor mode.
    
    Successfully tested with:
    QCA6174 (FW version: RM.4.4.1.c2-00057-QCARMSWP-1).
    Signed-off-by: default avatarYu Wang <yyuwang@codeaurora.org>
    [kvalo@codeaurora.org: cosmetic cleanup]
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    85bd0107
htt_rx.c 93.6 KB