libs/core: fix network counting in luci.model.wireless