From: Felix Fietkau Date: Wed, 29 Sep 2021 13:16:33 +0000 (+0200) Subject: wireless: fix index for stations X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=448ffc154fe78ee1c8e4b2cda1a479f0d8af8b37;p=project%2Fnetifd.git wireless: fix index for stations Use wdev->sta_idx instead of the VLAN counter wdev->vlan_idx Signed-off-by: Felix Fietkau --- diff --git a/wireless.c b/wireless.c index 1b5e78e..07cc321 100644 --- a/wireless.c +++ b/wireless.c @@ -1089,7 +1089,7 @@ wireless_station_create(struct wireless_device *wdev, char *vif, struct blob_att if (cur && blobmsg_get_bool(cur)) return; - sprintf(name, "%d", wdev->vlan_idx++); + sprintf(name, "%d", wdev->sta_idx++); sta = calloc_a(sizeof(*sta), &name_buf, strlen(name) + 1,