ath5k: clean up filter flags setting
authorBob Copeland <me@bobcopeland.com>
Tue, 25 Aug 2009 03:00:30 +0000 (23:00 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:43 +0000 (14:40 -0400)
commit56d1de0a21db28e41741cfa0a66e18bc8d920554
treeffcdd090c27c949e8a9a79e04d8b3004957fe989
parenteadac6bf95e1945bb64e6f8f22d8509391645e2e
ath5k: clean up filter flags setting

The maze of if() statements in configure_filter is confusing.
Reorganizing it as a switch statement makes it more apparent what
is going on and reveals several suspicious settings.  This has no
functional changes, though it does remove some redundant flags
that are set earlier.

Also now that we can sleep, protect sc->filter_flags with the
sc lock.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c