int main(int argc, char *argv[]) { uint16_t *eep = NULL; const ar9300_eeprom_t *ee; eep = calloc(4096, sizeof(int16_t)); if (argc < 2) usage(argv); load_eeprom_dump(argv[1], eep); ee = (ar9300_eeprom_t *) eep; eeprom_9300_hdr_print(eep); eeprom_9300_base_print(eep); printf("\n2GHz modal:\n"); eeprom_9300_modal_print(&ee->modal_header_2g); printf("\n5GHz modal:\n"); eeprom_9300_modal_print(&ee->modal_header_5g); free(eep); exit(0); }
int main(int argc, char *argv[]) { uint16_t *eep = NULL; eep = calloc(4096, sizeof(int16_t)); if (argc < 2) usage(argv); load_eeprom_dump(argv[1], eep); eeprom_v4k_base_print(eep); eeprom_v4k_custdata_print(eep); printf("\n2.4ghz:\n"); eeprom_v4k_modal_print(eep); printf("\n"); eeprom_v4k_calfreqpiers_print(eep); printf("\n"); eeprom_v4k_print_targets(eep); printf("\n"); eeprom_v4k_ctl_print(eep); printf("\n"); eeprom_v4k_print_edges(eep); printf("\n"); eeprom_v4k_print_other(eep); printf("\n"); free(eep); exit(0); }