mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
staging: vt6656: Use define instead of magic number for tx_rate
Use the define RATE_11M present in the file "device.h" instead of the magic number 3. So the code is more clear. Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Oscar Carter <oscar.carter@gmx.com> Link: https://lore.kernel.org/r/20200414153849.5785-4-oscar.carter@gmx.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
91fdbcd909
commit
8b0eb26ad5
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <linux/bits.h>
|
||||
#include <linux/kernel.h>
|
||||
#include "device.h"
|
||||
#include "mac.h"
|
||||
#include "baseband.h"
|
||||
#include "rf.h"
|
||||
|
@ -221,7 +222,7 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type,
|
|||
|
||||
rate = (unsigned int)vnt_frame_time[tx_rate];
|
||||
|
||||
if (tx_rate <= 3) {
|
||||
if (tx_rate <= RATE_11M) {
|
||||
if (preamble_type == PREAMBLE_SHORT)
|
||||
preamble = 96;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue