The upstream API changed, which allowed to simplify the code a bit. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 40376
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 39789