Christian Lamparter wrote: > Broken out the vdcf's code into another patch, as it caused problems in the last RFC. This patch has the following insertion as a replacement: +struct p54_tx_vdcf_queues { + u8 aifs; + u8 padding; + __le16 cwmin; + __le16 cwmax; + __le16 txop; +} __attribute__ ((packed)); Previously, aifs was of type __le16. With this change, the macro P54_SET_QUEUE must be changed as follows: #define P54_SET_QUEUE(queue, ai_fs, cw_min, cw_max, _txop) \ do { \ - queue.aifs = cpu_to_le16(ai_fs); \ + queue.aifs = ai_fs; \ queue.cwmin = cpu_to_le16(cw_min); \ queue.cwmax = cpu_to_le16(cw_max); \ queue.txop = cpu_to_le16(_txop); \ To further emphasize that the second parameter is u8, I also suggest the following changes in the macro invocation: - P54_SET_QUEUE(priv->qos_params[0], 0x0002, 0x0003, 0x0007, 47); - P54_SET_QUEUE(priv->qos_params[1], 0x0002, 0x0007, 0x000f, 94); - P54_SET_QUEUE(priv->qos_params[2], 0x0003, 0x000f, 0x03ff, 0); - P54_SET_QUEUE(priv->qos_params[3], 0x0007, 0x000f, 0x03ff, 0); + P54_SET_QUEUE(priv->qos_params[0], 0x02, 0x0003, 0x0007, 47); + P54_SET_QUEUE(priv->qos_params[1], 0x02, 0x0007, 0x000f, 94); + P54_SET_QUEUE(priv->qos_params[2], 0x03, 0x000f, 0x03ff, 0); + P54_SET_QUEUE(priv->qos_params[3], 0x07, 0x000f, 0x03ff, 0); Larry -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html