From 448ffc154fe78ee1c8e4b2cda1a479f0d8af8b37 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 29 Sep 2021 15:16:33 +0200 Subject: [PATCH] wireless: fix index for stations Use wdev->sta_idx instead of the VLAN counter wdev->vlan_idx Signed-off-by: Felix Fietkau --- wireless.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2