• T
    rtlwifi: support accurate nullfunc frame tx ack report · 6acfbb81
    Tzu-En Huang 提交于
    In order to realize the keep-alive mechanism in mac80211 stack, reporting
    accurate tx ack status for nullfunc frame is added in this commit.
    
    If current frame is nullfunc frame, we ask firmware to report by filling
    TX report bit in TX descriptor. After this frame DMA done, TX interrupt is
    triggered but TX status is unknown at this moment, so enqueue this skb
    into tx_report->queue. Finally, C2H report will be received if the frame
    is transmitted successfully or retried over, and then we report to mac80211
    with IEEE80211_TX_STAT_ACK flag only if it's successful. Otherwise, if
    failure or timeout (one second), we report to mac80211 without this flag.
    Signed-off-by: NTzu-En Huang <tehuang@realtek.com>
    Signed-off-by: NPing-Ke Shih <pkshih@realtek.com>
    Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
    6acfbb81
pci.c 67.4 KB