BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
c0f9abbd
Commit
c0f9abbd
authored
Apr 10, 2019
by
Zahid Chowdhury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow power control during scanning for the wp7xx
parent
836844f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
cfg80211.c
...ivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+25
-4
common.c
...drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
+4
-0
No files found.
linux_kernel_modules/cypwifi/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
View file @
c0f9abbd
...
...
@@ -1108,7 +1108,11 @@ brcmf_do_escan(struct brcmf_if *ifp, struct cfg80211_scan_request *request)
err
=
escan
->
run
(
cfg
,
ifp
,
request
);
if
(
err
)
/* SWI WP85 does not work with power control off for scanning */
#if defined(CONFIG_ARCH_MSM9615)
/* For WPX5XX */
brcmf_scan_config_mpc
(
ifp
,
0
);
#else
/* SWI WP7XX is fine with power control */
brcmf_scan_config_mpc
(
ifp
,
1
);
#endif
/* WPX5XX */
return
err
;
}
...
...
@@ -1206,7 +1210,11 @@ brcmf_cfg80211_escan(struct wiphy *wiphy, struct brcmf_cfg80211_vif *vif,
brcmf_err
(
"WLC_SCAN error (%d)
\n
"
,
err
);
/* SWI WP85 does not work with power control off for scanning */
#if defined(CONFIG_ARCH_MSM9615)
/* For WPX5XX */
brcmf_scan_config_mpc
(
ifp
,
0
);
#else
/* SWI WP7XX is fine with power control */
brcmf_scan_config_mpc
(
ifp
,
1
);
#endif
/* WPX5XX */
goto
scan_out
;
}
}
...
...
@@ -3820,7 +3828,12 @@ static s32 brcmf_cfg80211_suspend(struct wiphy *wiphy,
}
/* Configure MPC */
/* SWI WP85 does not work with power control off for scanning */
brcmf_set_mpc
(
ifp
,
0
);
#if defined(CONFIG_ARCH_MSM9615)
/* For WPX5XX */
brcmf_scan_config_mpc
(
ifp
,
0
);
#else
/* SWI WP7XX is fine with power control */
brcmf_scan_config_mpc
(
ifp
,
1
);
#endif
/* WPX5XX */
}
else
{
/* Configure WOWL parameters */
...
...
@@ -4744,7 +4757,11 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev,
exit:
if
((
err
)
&&
(
!
mbss
))
{
/* SWI WP85 does not work with power control off for scanning */
brcmf_set_mpc
(
ifp
,
0
);
#if defined(CONFIG_ARCH_MSM9615)
/* For WPX5XX */
brcmf_scan_config_mpc
(
ifp
,
0
);
#else
/* SWI WP7XX is fine with power control */
brcmf_scan_config_mpc
(
ifp
,
1
);
#endif
/* WPX5XX */
brcmf_configure_arp_nd_offload
(
ifp
,
true
);
}
return
err
;
...
...
@@ -4802,8 +4819,12 @@ static int brcmf_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
if
(
err
<
0
)
brcmf_err
(
"bss_enable config failed %d
\n
"
,
err
);
}
/* SWI WP85 does not work with power control off for scanning */
brcmf_set_mpc
(
ifp
,
0
);
/* SWI WP85 does not work with power control off for scanning */
#if defined(CONFIG_ARCH_MSM9615)
/* For WPX5XX */
brcmf_scan_config_mpc
(
ifp
,
0
);
#else
/* SWI WP7XX is fine with power control */
brcmf_scan_config_mpc
(
ifp
,
1
);
#endif
/* WPX5XX */
brcmf_configure_arp_nd_offload
(
ifp
,
true
);
clear_bit
(
BRCMF_VIF_STATUS_AP_CREATED
,
&
ifp
->
vif
->
sme_state
);
brcmf_net_setcarrier
(
ifp
,
false
);
...
...
linux_kernel_modules/cypwifi/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
View file @
c0f9abbd
...
...
@@ -331,7 +331,11 @@ int brcmf_c_preinit_dcmds(struct brcmf_if *ifp)
/* set mpc */
/* SWI WP85 does not work with power control off for scanning */
#if defined(CONFIG_ARCH_MSM9615)
/* For WPX5XX */
err
=
brcmf_fil_iovar_int_set
(
ifp
,
"mpc"
,
0
);
#else
/* SWI WP7XX is fine with power control */
err
=
brcmf_fil_iovar_int_set
(
ifp
,
"mpc"
,
1
);
#endif
/* WPX5XX */
if
(
err
)
{
brcmf_err
(
"failed setting mpc
\n
"
);
goto
done
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment