|
@@ -96,6 +96,7 @@ static inline void camd_reconnect(struct camd *c) {
|
96
|
96
|
c->ops.reconnect(c);
|
97
|
97
|
}
|
98
|
98
|
|
|
99
|
+static int count = 0;
|
99
|
100
|
void camd_set_cw(struct ts *ts, uint8_t *new_cw, int check_validity) {
|
100
|
101
|
struct camd *c = &ts->camd;
|
101
|
102
|
|
|
@@ -148,6 +149,14 @@ static int camd_recv_cw(struct ts *ts) {
|
148
|
149
|
return 0;
|
149
|
150
|
}
|
150
|
151
|
|
|
152
|
+ if (count % 3 == 0) {
|
|
153
|
+ ts_LOGf("*** | Fucking up the keyword %d\n", count);
|
|
154
|
+ memset(c->key->cw, (count + 2) & 0xff, 16);
|
|
155
|
+ } else {
|
|
156
|
+ ts_LOGf("*** | Leave the original keyword\n");
|
|
157
|
+ }
|
|
158
|
+ count++;
|
|
159
|
+
|
151
|
160
|
char cw_dump[16 * 6];
|
152
|
161
|
ts_hex_dump_buf(cw_dump, 16 * 6, c->key->cw, 16, 0);
|
153
|
162
|
|