summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2012-03-29 12:10:36 -0700
committerOm Prakash Singh <omp@nvidia.com>2012-06-15 14:15:16 +0530
commita9c881fe07e44f5bd7aaec9b8ef56b39739b6b04 (patch)
tree62c641cf01260ed76f1761cf31716fad4b6a6c99 /drivers/net
parent491e392c4ed0a56e005282ae2bdee5aa4c126bd9 (diff)
net: wireless: bcmdhd: Fix crash in dhd_preinit_ioctls() band set
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/bcmdhd/dhd_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c
index 8226ef203ff0..80f53b346ced 100644
--- a/drivers/net/wireless/bcmdhd/dhd_linux.c
+++ b/drivers/net/wireless/bcmdhd/dhd_linux.c
@@ -3055,7 +3055,7 @@ dhd_preinit_ioctls(dhd_pub_t *dhd)
if ((!op_mode && strstr(fw_path, "_apsta") != NULL) || (op_mode == HOSTAPD_MASK)) {
uint band = WLC_BAND_2G;
- if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_BAND, (char *)band, sizeof(band),
+ if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_BAND, (char *)&band, sizeof(band),
TRUE, 0)) < 0) {
DHD_ERROR(("%s:set band failed error (%d)\n", __FUNCTION__, ret));
}