mwan3: fix bugs introduced in 815e83d4