amt message type definition starts from 1, not 0. But type_str[] starts from 0. So, it prints wrong type information.
Unified · Split
| @@ -51,6 +51,7 @@ static char *status_str[] = { · 50 unmodified lines | ||
| 51 | 51 | }; |
| 52 | 52 | |
| 53 | 53 | static char *type_str[] = { |
| 54 | + "", /* Type 0 is not defined */ | |
| 54 | 55 | "AMT_MSG_DISCOVERY", |
| 55 | 56 | "AMT_MSG_ADVERTISEMENT", |
| 56 | 57 | "AMT_MSG_REQUEST", |