Skip to content

Commit 102fd0d

Browse files
Hante Meulemanlinvjw
authored andcommitted
brcmfmac: Disable powersave mode for P2P link.
For p2p client mode powersave mode should be kept disabled. It is working but inefficient. In general p2p links do no benefit from this mode, because these links are setup temporarily to transfer data. Reviewed-by: Arend Van Spriel <arend@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 1c9d30c commit 102fd0d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,6 +2248,11 @@ brcmf_cfg80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *ndev,
22482248
}
22492249

22502250
pm = enabled ? PM_FAST : PM_OFF;
2251+
/* Do not enable the power save after assoc if it is a p2p interface */
2252+
if (ifp->vif->wdev.iftype == NL80211_IFTYPE_P2P_CLIENT) {
2253+
brcmf_dbg(INFO, "Do not enable power save for P2P clients\n");
2254+
pm = PM_OFF;
2255+
}
22512256
brcmf_dbg(INFO, "power save %s\n", (pm ? "enabled" : "disabled"));
22522257

22532258
err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_PM, pm);

0 commit comments

Comments
 (0)