diff options
author | Greg Goldman <ggoldman@broadcom.com> | 2011-08-10 17:48:00 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2011-08-16 12:02:44 -0700 |
commit | 20bfdd5d018e15774fdd63e690186775b5d9bfa7 (patch) | |
tree | 06f0053ba1435f788fbfcb415353ef910ad2c82e /drivers/net/wireless/bcmdhd/dhd_common.c | |
parent | b3fe8ceed9c81686759388e34b675ddcd7463714 (diff) | |
download | kernel_samsung_aries-20bfdd5d018e15774fdd63e690186775b5d9bfa7.zip kernel_samsung_aries-20bfdd5d018e15774fdd63e690186775b5d9bfa7.tar.gz kernel_samsung_aries-20bfdd5d018e15774fdd63e690186775b5d9bfa7.tar.bz2 |
net: wireless: bcmdhd: Fixing missing WLP2P defintion for p2p
Change-Id: I9683fe499fd6cae89468dbb048c9fd8f1b13ecce
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/net/wireless/bcmdhd/dhd_common.c')
-rw-r--r-- | drivers/net/wireless/bcmdhd/dhd_common.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_common.c b/drivers/net/wireless/bcmdhd/dhd_common.c index c50f053..582ed8c 100644 --- a/drivers/net/wireless/bcmdhd/dhd_common.c +++ b/drivers/net/wireless/bcmdhd/dhd_common.c @@ -1553,8 +1553,10 @@ dhd_preinit_ioctls(dhd_pub_t *dhd) #endif #ifdef AP uint32 mpc = 0; /* Turn MPC off for AP/APSTA mode */ +#endif /* AP */ +#if defined(AP) || defined(WLP2P) uint32 apsta = 1; /* Enable APSTA mode */ -#endif +#endif /* defined(AP) || defined(WLP2P) */ #ifdef GET_CUSTOM_MAC_ENABLE struct ether_addr ea_addr; #endif /* GET_CUSTOM_MAC_ENABLE */ @@ -1653,11 +1655,12 @@ dhd_preinit_ioctls(dhd_pub_t *dhd) /* Turn off MPC in AP mode */ bcm_mkiovar("mpc", (char *)&mpc, 4, iovbuf, sizeof(iovbuf)); dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, sizeof(iovbuf), TRUE, 0); - +#endif /* AP */ +#if defined(AP) || defined(WLP2P) /* Enable APSTA mode */ bcm_mkiovar("apsta", (char *)&apsta, 4, iovbuf, sizeof(iovbuf)); dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, sizeof(iovbuf), TRUE, 0); -#endif +#endif /* defined(AP) || defined(WLP2P) */ #if defined(SOFTAP) if (ap_fw_loaded == TRUE) { dhd_wl_ioctl_cmd(dhd, WLC_SET_DTIMPRD, (char *)&dtim, sizeof(dtim), TRUE, 0); |