Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce17194e authored by Hante Meuleman's avatar Hante Meuleman Committed by John W. Linville
Browse files

brcmfmac: On bus flow control use fw signalling or netif.



Currently on a bus flow control both fws is informed and netif queue
gets closed. In case of fw signalling enabled, let the flow control
be handled by fw signalling only.

Reviewed-by: default avatarArend Van Spriel <arend@broadcom.com>
Signed-off-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8071fd61
Loading
Loading
Loading
Loading
+8 −5
Original line number Original line Diff line number Diff line
@@ -269,11 +269,14 @@ void brcmf_txflowblock(struct device *dev, bool state)


	brcmf_dbg(TRACE, "Enter\n");
	brcmf_dbg(TRACE, "Enter\n");


	if (brcmf_fws_fc_active(drvr->fws)) {
		brcmf_fws_bus_blocked(drvr, state);
		brcmf_fws_bus_blocked(drvr, state);

	} else {
		for (i = 0; i < BRCMF_MAX_IFS; i++)
		for (i = 0; i < BRCMF_MAX_IFS; i++)
			brcmf_txflowblock_if(drvr->iflist[i],
			brcmf_txflowblock_if(drvr->iflist[i],
				     BRCMF_NETIF_STOP_REASON_BLOCK_BUS, state);
					     BRCMF_NETIF_STOP_REASON_BLOCK_BUS,
					     state);
	}
}
}


void brcmf_rx_frames(struct device *dev, struct sk_buff_head *skb_list)
void brcmf_rx_frames(struct device *dev, struct sk_buff_head *skb_list)