mac80211: make alignment warning optional
commit6feeb8aad7925b4c00f785eac3039c772629b42f
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 29 Jan 2008 15:57:51 +0000 (29 16:57 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 1 Feb 2008 21:12:24 +0000 (1 16:12 -0500)
treed61348505908cfcddd1ff8af18f5bab613bbb6de
parent24e1c13c93cbdd05e4b7ea921c0050b036555adc
mac80211: make alignment warning optional

Driver authors should be aware of the alignment requirements, but
not everybody cares about the warning. This patch makes it depend
on a new Kconfig symbol MAC80211_DEBUG_PACKET_ALIGNMENT which can
be enabled regardless of MAC80211_DEBUG and is recommended for
driver authors (only). This also restricts the warning to data
packets so other packets need not be realigned to not trigger the
warning.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/Kconfig
net/mac80211/rx.c