aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'hostapd/driver.h')
-rw-r--r--hostapd/driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/driver.h b/hostapd/driver.h
index 6746c8c..c7c9052 100644
--- a/hostapd/driver.h
+++ b/hostapd/driver.h
@@ -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 */