Skip to content

Commit

Permalink
[PATCH] rt2x00: Fix residual check in PLCP calculations.
Browse files Browse the repository at this point in the history
Because rt2x00 implements the residual calculation different from what the
legacy code does (i.e. scaled values), we need to adjust the residual check.
Again, we are only mimicking the behaviour of the ralink driver without
actually knowing what we do :-(

Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Mattias Nissler authored and John W. Linville committed Oct 18, 2007
1 parent c7c4667 commit db15178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rt2x00/rt2x00dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ void rt2x00lib_write_tx_desc(struct rt2x00_dev *rt2x00dev,
/*
* Check if we need to set the Length Extension
*/
if (bitrate == 110 && residual <= 3)
if (bitrate == 110 && residual <= 30)
desc.service |= 0x80;
}

Expand Down

0 comments on commit db15178

Please sign in to comment.