mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mISDN: Fix HDLC DSP transmit
Fix HDLC DSP transmit (DL_DATA frames were bounced back upwards instead of being sent down as PH_DATA frames) Thanks to Andreas Eversberg for the fix! Signed-off-by: Andreas Eversberg <[email protected]> Signed-off-by: Peter Schlaile <[email protected]> Signed-off-by: Karsten Keil <[email protected]>
This commit is contained in:
parent
837468d135
commit
e4cce225f0
1 changed files with 7 additions and 4 deletions
|
|
@ -867,11 +867,14 @@ dsp_function(struct mISDNchannel *ch, struct sk_buff *skb)
|
|||
}
|
||||
if (dsp->hdlc) {
|
||||
/* hdlc */
|
||||
spin_lock_irqsave(&dsp_lock, flags);
|
||||
if (dsp->b_active) {
|
||||
skb_queue_tail(&dsp->sendq, skb);
|
||||
schedule_work(&dsp->workq);
|
||||
if (!dsp->b_active) {
|
||||
ret = -EIO;
|
||||
break;
|
||||
}
|
||||
hh->prim = PH_DATA_REQ;
|
||||
spin_lock_irqsave(&dsp_lock, flags);
|
||||
skb_queue_tail(&dsp->sendq, skb);
|
||||
schedule_work(&dsp->workq);
|
||||
spin_unlock_irqrestore(&dsp_lock, flags);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue