> drivers/net/wireless/libertas/cmd.c:609:16: warning: cast to > restricted __le16 > drivers/net/wireless/libertas/cmd.c:611:16: > warning: cast to restricted __le16 Yeah, this seems like a bug. In the cmd struct, it's defined as s8, so there is no need to use leXX_to_cpu() on it: struct cmd_ds_802_11_rf_tx_power { struct cmd_header hdr; __le16 action; __le16 curlevel; s8 maxlevel; s8 minlevel; }; -- 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