]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: use sk_buff to queue C2H commands
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 18 May 2018 09:30:05 +0000 (17:30 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 May 2018 07:17:03 +0000 (10:17 +0300)
commitb0186cc0c249558c8cce814674096c280e584722
tree65bb6c504fa6009c98ab7380cc0f3aedccab75b0
parentb7fe0b79841b915a6bdf31a3f372976d8c479f1e
rtlwifi: use sk_buff to queue C2H commands

We use 'struct rtl_c2hcmd' to store C2H commands originally, and the code
is slightly complex to enqueue and dequeue and also wastes time to
allocate and memcpy data. Since C2H commands are asynchronous events,
they can be processed in work queue, so RX ISR enqueues C2H result in
removal of rtl_c2h_packet_handler().

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/base.c
drivers/net/wireless/realtek/rtlwifi/base.h
drivers/net/wireless/realtek/rtlwifi/pci.c
drivers/net/wireless/realtek/rtlwifi/wifi.h