b43legacy: fix suspend/resume
authorStefano Brivio <stefano.brivio@polimi.it>
Sat, 2 Feb 2008 18:15:57 +0000 (19:15 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Feb 2008 19:35:46 +0000 (14:35 -0500)
commitada50731c0346bf900dc387edd3a6961297bf2d3
tree4078a2d9fc93451e1414047cbc235f08e033f815
parent0cd67d48b519c3d8d89d238fab1cf68a5289638a
b43legacy: fix suspend/resume

This patch makes suspend/resume work with the b43legacy driver.
We must not overwrite the MAC addresses in the init function, as this
would also overwrite the MAC on resume. With an all-zero MAC the device
firmware is not able to ACK any received packets anymore.
Fix this by moving the initializion stuff that must be done on init but
not on resume to the start function.
Also zero out filter_flags to make sure we don't have some flags
from a previous instance for a tiny timeframe until mac80211 reconfigures
them.

This patch by Michael Buesch has been ported to b43legacy.

Cc: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/main.c