hostapd: make cli treat UNKNOWN COMMAND as failing
authorDenton Gentry <denny@geekhold.com>
Wed, 30 May 2018 15:05:42 +0000 (15:05 +0000)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 08:43:58 +0000 (09:43 +0100)
commit1e0db693dfe6ae5c107713d9135a9a3d8a9b6d10
tree0c8b73ce96e4a12853fa7668cf1049e5bcf7ee7b
parentcc7fa7fcecbdf31828ee0fd3ce23aef144c43c9d
hostapd: make cli treat UNKNOWN COMMAND as failing

Avoid infinite loop at 100% CPU when running hostapd_cli
if CONFIG_CTRL_IFACE_MIB is not defined.

  _newselect(4, [3], NULL, NULL, ...)
  recvfrom(3, "UNKNOWN COMMAND\n", 4095, 0, NULL, NULL) = 16
  sendto(3, "STA-NEXT UNKNOWN COMMAND", 24, 0, NULL, 0) = 24

Signed-off-by: Denton Gentry <denny@geekhold.com>
(backported from a84962ea35e4e97f1c4a42f2eac0242cc2cbd879)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch [new file with mode: 0644]