PUT2
#define PUT4(p,a) do {PUT2(p,a);PUT2(p+2,a>>16);} while(0)
PUT2(ext + 32, log->stored);
PUT2(buf + 2, log->stored);
PUT2(buf + 4, log->stored ^ 0xffff);
PUT2(sp->sp_frag_thresh, 0x7fff); /* disabled */
PUT2(sp->sp_dwell_time, 0x200);
PUT2(sp->sp_beacon_period, 1);
PUT2(sp->sp_dwell_time, 0x400);
PUT2(sp->sp_beacon_period, 0);
PUT2(sp->sp_dwell_time, 128);
PUT2(sp->sp_beacon_period, 256);
PUT2(sp->sp_rts_thresh, 0x7fff); /* disabled */
PUT2(sp->sp_scan_dwell, 0xfb1e);
PUT2(sp->sp_scan_max_dwell, 0xc75c);
PUT2(sp->sp_scan_dwell, 0x4e2);
PUT2(sp->sp_scan_max_dwell, 0x38a4);
PUT2(sp->sp_uniq_word, 0x0cbd);
PUT2(sp5->sp_cw_max, 0x3f);
PUT2(sp5->sp_cw_min, 0x0f);