projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ba9e6
)
net: wireless: bcmdhd: Fix crash in dhd_preinit_ioctls() band set
author
Dmitry Shmidt
<dimitrysh@google.com>
Thu, 29 Mar 2012 19:10:36 +0000
(12:10 -0700)
committer
Dmitry Shmidt
<dimitrysh@google.com>
Thu, 29 Mar 2012 19:18:19 +0000
(12:18 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/dhd_linux.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/bcmdhd/dhd_linux.c
b/drivers/net/wireless/bcmdhd/dhd_linux.c
index ce2535692b79cb41313322970ef42d0c8825fd42..0205e7ce6017d03220f89d6efa04dd6afef4af9a 100644
(file)
--- a/
drivers/net/wireless/bcmdhd/dhd_linux.c
+++ b/
drivers/net/wireless/bcmdhd/dhd_linux.c
@@
-3053,7
+3053,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));
}