wil6210: change reply_size arg to u16 in wmi_call
authorLior David <liord@codeaurora.org>
Wed, 9 May 2018 10:06:55 +0000 (13:06 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 12 May 2018 09:27:15 +0000 (12:27 +0300)
Change the type of the argument reply_size from u8 to
u16 in order to support reply sizes > 255 bytes.
The driver already supports u16 reply size in all
other places, this was the only missing change.

Signed-off-by: Lior David <liord@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wmi.c

index f9c5155025bc4fb6a429db6b7f58345c7c410cfd..9ac92921d47c3111168755f8fd6ceee98a00b91e 100644 (file)
@@ -986,7 +986,7 @@ int wmi_read_hdr(struct wil6210_priv *wil, __le32 ptr,
 int wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len);
 void wmi_recv_cmd(struct wil6210_priv *wil);
 int wmi_call(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len,
-            u16 reply_id, void *reply, u8 reply_size, int to_msec);
+            u16 reply_id, void *reply, u16 reply_size, int to_msec);
 void wmi_event_worker(struct work_struct *work);
 void wmi_event_flush(struct wil6210_priv *wil);
 int wmi_set_ssid(struct wil6210_vif *vif, u8 ssid_len, const void *ssid);
index 73efa13bc742fecc3e937bafa26d2a90b351e982..fcd95299eb4fa5fdddfb47a65e4b51767e3b823a 100644 (file)
@@ -1416,7 +1416,7 @@ void wmi_recv_cmd(struct wil6210_priv *wil)
 }
 
 int wmi_call(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len,
-            u16 reply_id, void *reply, u8 reply_size, int to_msec)
+            u16 reply_id, void *reply, u16 reply_size, int to_msec)
 {
        int rc;
        unsigned long remain;