summaryrefslogtreecommitdiffstats
path: root/bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c')
-rw-r--r--bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c
index 5e1a2c6..2273ce7 100644
--- a/bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c
+++ b/bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c
@@ -20,7 +20,11 @@
#define MAX_WPSP2PIE_CMD_SIZE 512
typedef struct android_wifi_priv_cmd {
- char *buf;
+#ifdef BCMDHD_64_BIT_IPC
+ u64 bufaddr;
+#else
+ char *bufaddr;
+#endif
int used_len;
int total_len;
} android_wifi_priv_cmd;
@@ -81,7 +85,11 @@ int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf,
memset(&priv_cmd, 0, sizeof(priv_cmd));
os_strlcpy(ifr.ifr_name, bss->ifname, IFNAMSIZ);
- priv_cmd.buf = buf;
+#ifdef BCMDHD_64_BIT_IPC
+ priv_cmd.bufaddr = (u64)buf;
+#else
+ priv_cmd.bufaddr = buf;
+#endif
priv_cmd.used_len = buf_len;
priv_cmd.total_len = buf_len;
ifr.ifr_data = &priv_cmd;