Skip to content

Commit

Permalink
[PATCH] rt2x00: Remove radio check from rt2x00lib_toggle_rx
Browse files Browse the repository at this point in the history
Don't check if the radio is enabled in rt2x00lib_toggle_rx,
this is required since the link tuner should be disabled
when shutting down the device. The remaining calls inside the
rt2x00lib_toggle_rx handler should deliver no problems when
called while the radio is done.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Ivo van Doorn authored and David S. Miller committed Oct 10, 2007
1 parent 4abee4b commit 3a84732
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/rt2x00/rt2x00dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ void rt2x00lib_toggle_rx(struct rt2x00_dev *rt2x00dev, int enable)
{
enum dev_state state = enable ? STATE_RADIO_RX_ON : STATE_RADIO_RX_OFF;

if (!test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags))
return;

/*
* When we are disabling the RX, we should also stop the link tuner.
*/
Expand Down

0 comments on commit 3a84732

Please sign in to comment.