Make use of put_unaligned_le32() function to pack the wid command buffer
for firmware.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
goto free_msg;
currbyte = buffer;
- *currbyte = hif_drv->driver_handler_id & DRV_HANDLER_MASK;
- currbyte++;
- *currbyte = (u32)0 & DRV_HANDLER_MASK;
- currbyte++;
- *currbyte = (u32)0 & DRV_HANDLER_MASK;
- currbyte++;
- *currbyte = (u32)0 & DRV_HANDLER_MASK;
- currbyte++;
+ put_unaligned_le32(hif_drv->driver_handler_id, currbyte);
+ currbyte += 4;
*currbyte = (hif_drv_handler->name | (hif_drv_handler->mode << 1));
wid.id = WID_SET_DRV_HANDLER;
#define WILC_ADD_STA_LENGTH 40
#define WILC_NUM_CONCURRENT_IFC 2
#define WILC_DRV_HANDLER_SIZE 5
-#define DRV_HANDLER_MASK 0x000000FF
#define NUM_RSSI 5