aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ap/ap_list.c')
-rw-r--r--src/ap/ap_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ap_list.c b/src/ap/ap_list.c
index 47a2c4b..78a1f7c 100644
--- a/src/ap/ap_list.c
+++ b/src/ap/ap_list.c
@@ -200,7 +200,7 @@ void ap_list_process_beacon(struct hostapd_iface *iface,
if (elems->ds_params)
ap->channel = elems->ds_params[0];
- else if (elems->ht_operation && elems->ht_operation_len >= 1)
+ else if (elems->ht_operation)
ap->channel = elems->ht_operation[0];
else if (fi)
ap->channel = fi->channel;