+@@ -5631,7 +5649,9 @@ static void *i802_init(struct hostapd_da
+
+ failed:
+ nl80211_remove_monitor_interface(drv);
++#ifdef CONFIG_RFKILL
+ rfkill_deinit(drv->rfkill);
++#endif
+ netlink_deinit(drv->netlink);
+ if (drv->ioctl_sock >= 0)
+ close(drv->ioctl_sock);