mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
eliminate byteswapping in struct ieee80211_qos_parameters
Make it match the on-the-wire endianness, eliminate byteswapping. The only driver that used this sucker (ipw2200) updated. Signed-off-by: Al Viro <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
c0ddd04d55
commit
8fffc15dc7
3 changed files with 48 additions and 57 deletions
|
|
@ -1032,16 +1032,16 @@ static int ieee80211_qos_convert_ac_to_parameters(struct
|
|||
qos_param->aifs[i] -= (qos_param->aifs[i] < 2) ? 0 : 2;
|
||||
|
||||
cw_min = ac_params->ecw_min_max & 0x0F;
|
||||
qos_param->cw_min[i] = (u16) ((1 << cw_min) - 1);
|
||||
qos_param->cw_min[i] = cpu_to_le16((1 << cw_min) - 1);
|
||||
|
||||
cw_max = (ac_params->ecw_min_max & 0xF0) >> 4;
|
||||
qos_param->cw_max[i] = (u16) ((1 << cw_max) - 1);
|
||||
qos_param->cw_max[i] = cpu_to_le16((1 << cw_max) - 1);
|
||||
|
||||
qos_param->flag[i] =
|
||||
(ac_params->aci_aifsn & 0x10) ? 0x01 : 0x00;
|
||||
|
||||
txop = le16_to_cpu(ac_params->tx_op_limit) * 32;
|
||||
qos_param->tx_op_limit[i] = (u16) txop;
|
||||
qos_param->tx_op_limit[i] = cpu_to_le16(txop);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue