Silenced some of the driver-related messages for driver=none case
[libeap.git] / hostapd / driver.h
index 6746c8c..c7c9052 100644 (file)
@@ -766,4 +766,10 @@ hostapd_set_ht_operation(const char *ifname, struct hostapd_data *hapd,
 }
 #endif /* CONFIG_IEEE80211N */
 
+static inline int
+hostapd_drv_none(struct hostapd_data *hapd)
+{
+       return hapd->driver && os_strcmp(hapd->driver->name, "none") == 0;
+}
+
 #endif /* DRIVER_H */