luci-base: fix handling of monitor ifaces
authorJo-Philipp Wich <jo@mein.io>
Thu, 4 Aug 2016 09:40:34 +0000 (11:40 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 4 Aug 2016 09:45:30 +0000 (11:45 +0200)
commit123f14b55d8ec80a8fdd328daad51a7b1532da06
tree3fdae077d3d8dfefd2ae992374572006ea837b17
parent240b8c4b6e5597f3f89f4382df49c123ab114c46
luci-base: fix handling of monitor ifaces

Wireless monitor interfaces usually have no SSID set in their config and
various network model utility functions did not handle this case properly,
mainly while trying to incorperate the SSID string into various description
labels.

Fall back to the internal network id (radioX.networkY) in cases where neither
the SSID nor the BSSID are available.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/model/network.lua