There are some casts to uint8_t in ks_wlan_set_rate function to
assign values of the bitrate. Just change it to u8 which is the one
defined for the field 'body' of the struct which is in use.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
case 11000000:
case 5500000:
priv->reg.rate_set.body[0] =
- (uint8_t)(vwrq->bitrate.value / 500000);
+ (u8)(vwrq->bitrate.value / 500000);
break;
case 2000000:
case 1000000:
priv->reg.rate_set.body[0] =
- ((uint8_t)(vwrq->bitrate.value / 500000)) |
+ ((u8)(vwrq->bitrate.value / 500000)) |
BASIC_RATE;
break;
default:
case 18000000:
case 9000000:
priv->reg.rate_set.body[0] =
- (uint8_t)(vwrq->bitrate.value / 500000);
+ (u8)(vwrq->bitrate.value / 500000);
break;
case 24000000:
case 12000000:
case 2000000:
case 1000000:
priv->reg.rate_set.body[0] =
- ((uint8_t)(vwrq->bitrate.value / 500000)) |
+ ((u8)(vwrq->bitrate.value / 500000)) |
BASIC_RATE;
break;
default: