wifi: wilc1000: simplify remain on channel support
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 26 Oct 2023 14:10:11 +0000 (17:10 +0300)
committerKalle Valo <kvalo@kernel.org>
Mon, 30 Oct 2023 17:23:51 +0000 (19:23 +0200)
commita0ddf39ac6420e9b52200973ac07b261db8e7595
treec8116ff351afcbfd80ee75bff085720d3d60e2f6
parent58534b3be0ca4e73a652a4e63f9f5ee80a6cf891
wifi: wilc1000: simplify remain on channel support

For 'struct wilc_remain_ch', drop set but otherwise unused 'duration'
field and adjust 'expired' callback assuming that the only data passed
to it is 'struct wilc_vif *', thus making 'wilc_remain_on_channel()'
a bit simpler as well. Compile tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231026141016.71407-1-dmantipov@yandex.ru
drivers/net/wireless/microchip/wilc1000/cfg80211.c
drivers/net/wireless/microchip/wilc1000/hif.c
drivers/net/wireless/microchip/wilc1000/hif.h