]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08f75adb96569c28e8b920feae7c9f6a4dc566e7
treeffcdd090c27c949e8a9a79e04d8b3004957fe989
parent4f8dbd4fe0960926659897eb0e8c0c17c8e08641
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