Diff between 0a5ae04d8e1b666617d9d2790e56df80f00b63ec and ffd321f1e189c8bf99ca0f53c5ee030436c8bf29

Changed Files

File Additions Deletions Status
plugins/autopair.c +8 -0 modified

Full Patch

diff --git a/plugins/autopair.c b/plugins/autopair.c
index e6e5035..8c98c12 100644
--- a/plugins/autopair.c
+++ b/plugins/autopair.c
@@ -121,6 +121,14 @@ static ssize_t autopair_pincb(struct btd_adapter *adapter,
 		}
 
 		break;
+	case 0x06:		/* Imaging */
+		if (class & 0x80) {	/* Printer */
+			if (attempt > 1)
+				return 0;
+			memcpy(pinbuf, "0000", 4);
+			return 4;
+		}
+		break;
 	}
 
 	return 0;