提交 24d7d5e8 编写于 作者: F Franky Lin 提交者: Greg Kroah-Hartman

staging: brcm80211: remove global variable brcmf_roam from fullmac

Remove unnecessary global variable
Reviewed-by: NRoland Vossen <rvossen@broadcom.com>
Reviewed-by: NArend van Spriel <arend@broadcom.com>
Signed-off-by: NFranky Lin <frankyl@broadcom.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 82553d9b
...@@ -673,9 +673,6 @@ extern uint brcmf_arp_mode; ...@@ -673,9 +673,6 @@ extern uint brcmf_arp_mode;
/* ARP offload enable */ /* ARP offload enable */
extern uint brcmf_arp_enable; extern uint brcmf_arp_enable;
/* Roaming mode control */
extern uint brcmf_roam;
/* Roaming mode control */ /* Roaming mode control */
extern uint brcmf_radio_up; extern uint brcmf_radio_up;
......
...@@ -794,6 +794,7 @@ int brcmf_c_preinit_ioctls(struct brcmf_pub *drvr) ...@@ -794,6 +794,7 @@ int brcmf_c_preinit_ioctls(struct brcmf_pub *drvr)
char buf[128], *ptr; char buf[128], *ptr;
u32 dongle_align = BRCMF_SDALIGN; u32 dongle_align = BRCMF_SDALIGN;
u32 glom = 0; u32 glom = 0;
u32 roaming = 1;
uint bcn_timeout = 3; uint bcn_timeout = 3;
int scan_assoc_time = 40; int scan_assoc_time = 40;
int scan_unassoc_time = 40; int scan_unassoc_time = 40;
...@@ -838,7 +839,7 @@ int brcmf_c_preinit_ioctls(struct brcmf_pub *drvr) ...@@ -838,7 +839,7 @@ int brcmf_c_preinit_ioctls(struct brcmf_pub *drvr)
/* Enable/Disable build-in roaming to allowed ext supplicant to take /* Enable/Disable build-in roaming to allowed ext supplicant to take
of romaing */ of romaing */
brcmu_mkiovar("roam_off", (char *)&brcmf_roam, 4, brcmu_mkiovar("roam_off", (char *)&roaming, 4,
iovbuf, sizeof(iovbuf)); iovbuf, sizeof(iovbuf));
brcmf_proto_cdc_set_ioctl(drvr, 0, BRCMF_C_SET_VAR, iovbuf, brcmf_proto_cdc_set_ioctl(drvr, 0, BRCMF_C_SET_VAR, iovbuf,
sizeof(iovbuf)); sizeof(iovbuf));
......
...@@ -98,9 +98,6 @@ module_param(brcmf_arp_mode, uint, 0); ...@@ -98,9 +98,6 @@ module_param(brcmf_arp_mode, uint, 0);
uint brcmf_arp_enable = true; uint brcmf_arp_enable = true;
module_param(brcmf_arp_enable, uint, 0); module_param(brcmf_arp_enable, uint, 0);
/* Contorl fw roaming */
uint brcmf_roam = 1;
/* Control radio state */ /* Control radio state */
uint brcmf_radio_up = 1; uint brcmf_radio_up = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册