Skip to content

hostapd: add new line after get beacon

Janusz Dziedzic requested to merge get_beacon_newline into devel

Sometimes (latest openwrt) that get beacon fail when:

popen() -> fgets() -> timeout 5 hostapd_cli get beacon

This happend when we are using timeout (busybox version) and don't have new line after "get beacon" call.

We can fix it different ways, but adding new line seems to be simplest one.

Seems fgets() put data to local buffer but return NULL and we don't copy data to out buffer.

Signed-off-by: Janusz Dziedzic janusz.dziedzic@iopsys.eu

Merge request reports