kernel/include/linux/rfkill-wlan.h
.. .. @@ -46,7 +46,14 @@ 46 46 struct clk *ext_clk; 47 47 }; 48 48 49 +#if IS_REACHABLE(CONFIG_RFKILL_RK)49 50 int rfkill_get_wifi_power_state(int *power); 51 +#else52 +static inline int rfkill_get_wifi_power_state(int *power)53 +{54 + return -1;55 +}56 +#endif50 57 void *rockchip_mem_prealloc(int section, unsigned long size); 51 58 int rfkill_set_wifi_bt_power(int on); 52 59 int rockchip_wifi_power(int on);