Commit a1b7f85e4f632f9cc342d8a34a3903feaf47a261

Authored by sjur.brandeland@stericsson.com
Committed by David S. Miller
1 parent bebd097a0a

caif: Bugfix - XOFF removed channel from caif-mux

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -255,7 +255,7 @@
255 255  
256 256 if (cfsrvl_phyid_match(layer, phyid) && layer->ctrlcmd) {
257 257  
258   - if ((ctrl == _CAIF_CTRLCMD_PHYIF_FLOW_OFF_IND ||
  258 + if ((ctrl == _CAIF_CTRLCMD_PHYIF_DOWN_IND ||
259 259 ctrl == CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND) &&
260 260 layer->id != 0) {
261 261