[PATCH] ieee80211: don't flood log with errors

The "ieee80211: Workaround malformed 802.11 frames from AP" patch (see
http://kernel.org/git/?p=linux/kernel/git/linville/wireless-2.6.git;a=commit;h=f09fc44d8c25f22c4d985bb93857338ed02feac6 )
fixes the problem with some buggy APs but also converts debug message into
an error one. This floods the log with errors when you are near such AP (you
get a message for every beacon). This patch reverts the error message back
to the debug one.

Signed-off-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by Jiri Benc and committed by John W. Linville aec41a0d 16b7b2ac

+6 -6
+6 -6
net/ieee80211/ieee80211_rx.c
··· 1078 1079 while (length >= sizeof(*info_element)) { 1080 if (sizeof(*info_element) + info_element->len > length) { 1081 - IEEE80211_ERROR("Info elem: parse failed: " 1082 - "info_element->len + 2 > left : " 1083 - "info_element->len+2=%zd left=%d, id=%d.\n", 1084 - info_element->len + 1085 - sizeof(*info_element), 1086 - length, info_element->id); 1087 /* We stop processing but don't return an error here 1088 * because some misbehaviour APs break this rule. ie. 1089 * Orinoco AP1000. */
··· 1078 1079 while (length >= sizeof(*info_element)) { 1080 if (sizeof(*info_element) + info_element->len > length) { 1081 + IEEE80211_DEBUG_MGMT("Info elem: parse failed: " 1082 + "info_element->len + 2 > left : " 1083 + "info_element->len+2=%zd left=%d, id=%d.\n", 1084 + info_element->len + 1085 + sizeof(*info_element), 1086 + length, info_element->id); 1087 /* We stop processing but don't return an error here 1088 * because some misbehaviour APs break this rule. ie. 1089 * Orinoco AP1000. */