ath5k: allow setting txpower to 0
authorBob Copeland <me@bobcopeland.com>
Mon, 16 Nov 2009 13:30:29 +0000 (08:30 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Nov 2009 19:17:14 +0000 (14:17 -0500)
commit2eb2fa67e5462a36e98172fb92c78bc405b3035f
tree10ad3ee6bdbe01156a7b86a9627e89405e7eceb1
parent634a555ce3ee5ea1fdcaee8b4ac9ce7b54f301ac
ath5k: allow setting txpower to 0

As a holdover from earlier code when we used to set
the power limit to '0' after a reset to configure the
default transmit power, ath5k interprets txpower=0 as
12.5 dBm.  Fix that by just passing 0 through.

This fixes http://bugzilla.kernel.org/show_bug.cgi?id=14567

Cc: stable@kernel.org
Reported-by: Daniel Folkers <daniel.folkers@task24.nl>
Tested-by: Daniel Folkers <daniel.folkers@task24.nl>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/phy.c