Add MESH to modes capabilities
This makes it easier for upper layer programs to figure out whether the wpa_supplicant and and the driver supports mesh. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b9749b6aaa
commit
cf08e9b1f4
1 changed files with 10 additions and 0 deletions
|
@ -3594,6 +3594,16 @@ static int ctrl_iface_get_capability_modes(int res, char *strict,
|
||||||
pos += ret;
|
pos += ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_MESH
|
||||||
|
if (capa->flags & WPA_DRIVER_FLAGS_MESH) {
|
||||||
|
ret = os_snprintf(pos, end - pos, "%sMESH",
|
||||||
|
pos == buf ? "" : " ");
|
||||||
|
if (os_snprintf_error(end - pos, ret))
|
||||||
|
return pos - buf;
|
||||||
|
pos += ret;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_MESH */
|
||||||
|
|
||||||
return pos - buf;
|
return pos - buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue