mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 01:33:52 +08:00
* RDLR, RDHR gone from safety * back at not failing misra safety * fix safety tests * did not mean this * Use get-bytes in pedal too * Ignore Misra 11.5 and Fix 11.8 violaitons * Fix 11.3 violations * Neglect Misra 11.4, fix pointer issue in bootstub and rutn on Werror for pedal builds * Fix Misra 11.6: can't assign number to void pointer * Fix test after changing honda_moving name * for loop is better * Fix bugs from fbck
14 lines
501 B
C
14 lines
501 B
C
#define PROVISION_CHUNK_LEN 0x20
|
|
|
|
// WiFi SSID = 0x0 - 0x10
|
|
// WiFi password = 0x10 - 0x1C
|
|
// SHA1 checksum = 0x1C - 0x20
|
|
|
|
void get_provision_chunk(uint8_t *resp) {
|
|
(void)memcpy(resp, (uint8_t *)0x1fff79e0, PROVISION_CHUNK_LEN);
|
|
if (memcmp(resp, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", 0x20) == 0) {
|
|
(void)memcpy(resp, "unprovisioned\x00\x00\x00testing123\x00\x00\xa3\xa6\x99\xec", 0x20);
|
|
}
|
|
}
|
|
|