Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hante Meuleman and committed by
John W. Linville
102fd0d6 1c9d30cf

+5
+5
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
··· 2248 2248 } 2249 2249 2250 2250 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 + } 2251 2256 brcmf_dbg(INFO, "power save %s\n", (pm ? "enabled" : "disabled")); 2252 2257 2253 2258 err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_PM, pm);