In linux case, _init_timer() does not use nic_hdl, the 2nd argument,
from drivers/net/wireless/rtl8812au/include/osdep_service_linux.h and
rlt88xx should register timer even there is null adapter, otherwise
interface-up causes mod_timer crash.
Change-Id: I30addc152c197e0243b9b58e8108799f0f94330c
Fixes: commit
52ddac0afb83 ("net: rtl88xx: fix to check null adapter")
Reported-by: Cheoleun Moon <chleun.moon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
{
_adapter *adapter = (_adapter *)padapter;
- if (!adapter)
- return;
-
#ifdef PLATFORM_LINUX
- _init_timer(ptimer, adapter->pnetdev, pfunc, ctx);
+ _init_timer(ptimer, NULL, pfunc, ctx);
#endif
#ifdef PLATFORM_FREEBSD
_init_timer(ptimer, adapter->pifp, pfunc, ctx);