mirror of
https://github.com/torvalds/linux
synced 2024-10-09 21:05:10 +00:00
staging: wilc1000: avoid 'bool' datatype in struct sent to firmware
Use 'u8' instead of 'bool' datatype for struct element sent to firmware because storage of bool datatype is not guaranteed. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Link: https://lore.kernel.org/r/20191105095058.24223-2-ajay.kathat@microchip.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8888ed0323
commit
5e3bafbd14
|
@ -32,7 +32,7 @@ struct wilc_op_mode {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wilc_reg_frame {
|
struct wilc_reg_frame {
|
||||||
bool reg;
|
u8 reg;
|
||||||
u8 reg_id;
|
u8 reg_id;
|
||||||
__le16 frame_type;
|
__le16 frame_type;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
@ -1784,7 +1784,9 @@ void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg)
|
||||||
wid.val = (u8 *)®_frame;
|
wid.val = (u8 *)®_frame;
|
||||||
|
|
||||||
memset(®_frame, 0x0, sizeof(reg_frame));
|
memset(®_frame, 0x0, sizeof(reg_frame));
|
||||||
reg_frame.reg = reg;
|
|
||||||
|
if (reg)
|
||||||
|
reg_frame.reg = 1;
|
||||||
|
|
||||||
switch (frame_type) {
|
switch (frame_type) {
|
||||||
case IEEE80211_STYPE_ACTION:
|
case IEEE80211_STYPE_ACTION:
|
||||||
|
|
Loading…
Reference in a new issue