]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/ap/ctrl_iface_ap.c
hostapd: Add ctrl iface indications for WDS STA interface
[thirdparty/hostap.git] / src / ap / ctrl_iface_ap.c
index f230bd41932563ffb10a0d4cadfc0fb3e5fa0f86..21b813ee18d775b5bf7a6cbfcd2bf8ab88dcdfea 100644 (file)
@@ -334,6 +334,13 @@ static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd,
                len += os_snprintf(buf + len, buflen - len, "\n");
        }
 
+       if (sta->flags & WLAN_STA_WDS && sta->ifname_wds) {
+               ret = os_snprintf(buf + len, buflen - len,
+                                 "wds_sta_ifname=%s\n", sta->ifname_wds);
+               if (!os_snprintf_error(buflen - len, ret))
+                       len += ret;
+       }
+
        return len;
 }