From: Robert Jordens Some Apple Airport base stations (notably the "Snow" dual-ethernet ones) send malformed association response packets that are one byte too long. This causes parsing to fail. Allowing the packet to be one byte too long makes the parsing a bit more lax but can hardly go wrong because _one_ spurious byte cannot be a missed information element. Signed-off-by: Robert Jordens Signed-off-by: Jiri Benc Index: netdev/net/ieee80211/ieee80211_sta.c =================================================================== --- netdev.orig/net/ieee80211/ieee80211_sta.c 2006-01-02 14:19:32.000000000 +0100 +++ netdev/net/ieee80211/ieee80211_sta.c 2006-01-02 14:23:19.000000000 +0100 @@ -210,8 +210,8 @@ static ParseRes ieee802_11_parse_elems(u pos += elen; } - if (left) - return ParseFailed; + /* Do not trigger error if left == 1 as Apple Airport base stations + * send AssocResps that are one spurious byte too long. */ return unknown ? ParseUnknown : ParseOK; }