Fixes issue #11282, this patch was provided by PaulFertser on the #openwrt IRC. Signed-off-by: Rosen Penev <rosenp@gmail.com>