Fix erronous behaviour in Ieee802.11 mac code