Skip to content

Commit

Permalink
caif: Bugfix - XOFF removed channel from caif-mux
Browse files Browse the repository at this point in the history
XOFF was mixed up with DOWN indication, causing causing CAIF channel to be
removed from mux and all incoming traffic to be lost after receiving flow-off.
Fix this by replacing FLOW_OFF with DOWN notification.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
  • Loading branch information
sjur.brandeland@stericsson.com authored and David S. Miller committed Jun 17, 2011
1 parent bebd097 commit a1b7f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/caif/cfmuxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,

if (cfsrvl_phyid_match(layer, phyid) && layer->ctrlcmd) {

if ((ctrl == _CAIF_CTRLCMD_PHYIF_FLOW_OFF_IND ||
if ((ctrl == _CAIF_CTRLCMD_PHYIF_DOWN_IND ||
ctrl == CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND) &&
layer->id != 0) {

Expand Down

0 comments on commit a1b7f85

Please sign in to comment.