net: rfkill: rk: Add stub for rfkill_get_wifi_power_state() when CONFIG_RFKILL_RK=n
Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> Change-Id: I15897f8421e7f00b08170f428179c82b969e36fd
This commit is contained in:
parent
527eb2b93f
commit
0ead4b6531
1 changed files with 7 additions and 0 deletions
|
|
@ -46,7 +46,14 @@ struct rksdmmc_gpio_wifi_moudle {
|
|||
struct clk *ext_clk;
|
||||
};
|
||||
|
||||
#if IS_REACHABLE(CONFIG_RFKILL_RK)
|
||||
int rfkill_get_wifi_power_state(int *power);
|
||||
#else
|
||||
static inline int rfkill_get_wifi_power_state(int *power)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
void *rockchip_mem_prealloc(int section, unsigned long size);
|
||||
int rfkill_set_wifi_bt_power(int on);
|
||||
int rockchip_wifi_power(int on);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue