aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hw_features.c
diff options
context:
space:
mode:
Diffstat (limited to 'hostapd/hw_features.c')
-rw-r--r--hostapd/hw_features.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/hw_features.c b/hostapd/hw_features.c
index c58e1e4..e3a1959 100644
--- a/hostapd/hw_features.c
+++ b/hostapd/hw_features.c
@@ -46,6 +46,8 @@ int hostapd_get_hw_features(struct hostapd_iface *iface)
u16 num_modes, flags;
struct hostapd_hw_modes *modes;
+ if (hostapd_drv_none(hapd))
+ return -1;
modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags);
if (modes == NULL) {
hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,