diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-09-29 15:16:33 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-09-29 15:16:37 +0200 |
commit | 448ffc154fe78ee1c8e4b2cda1a479f0d8af8b37 (patch) | |
tree | cbaa80f8c53b1884e28d56696cce59bf2119911b | |
parent | e467e0ff44c00cdd722e7149baaa8706d44e657e (diff) | |
download | netifd-448ffc154fe78ee1c8e4b2cda1a479f0d8af8b37.tar.gz |
wireless: fix index for stations
Use wdev->sta_idx instead of the VLAN counter wdev->vlan_idx
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | wireless.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |