|
@@ -78,7 +78,7 @@ static struct rfcomm_session *rfcomm_session_del(struct rfcomm_session *s);
|
|
|
#define __get_type(b) ((b & 0xef))
|
|
|
|
|
|
#define __test_ea(b) ((b & 0x01))
|
|
|
-#define __test_cr(b) ((b & 0x02))
|
|
|
+#define __test_cr(b) (!!(b & 0x02))
|
|
|
#define __test_pf(b) ((b & 0x10))
|
|
|
|
|
|
#define __addr(cr, dlci) (((dlci & 0x3f) << 2) | (cr << 1) | 0x01)
|
|
@@ -904,7 +904,7 @@ static int rfcomm_send_nsc(struct rfcomm_session *s, int cr, u8 type)
|
|
|
hdr->len = __len8(sizeof(*mcc) + 1);
|
|
|
|
|
|
mcc = (void *) ptr; ptr += sizeof(*mcc);
|
|
|
- mcc->type = __mcc_type(cr, RFCOMM_NSC);
|
|
|
+ mcc->type = __mcc_type(0, RFCOMM_NSC);
|
|
|
mcc->len = __len8(1);
|
|
|
|
|
|
/* Type that we didn't like */
|