448 #define AR5K_GAIN_CRN_FIX_BITS_5111 4
449 #define AR5K_GAIN_CRN_FIX_BITS_5112 7
450 #define AR5K_GAIN_CRN_MAX_FIX_BITS AR5K_GAIN_CRN_FIX_BITS_5112
451 #define AR5K_GAIN_DYN_ADJUST_HI_MARGIN 15
452 #define AR5K_GAIN_DYN_ADJUST_LO_MARGIN 20
453 #define AR5K_GAIN_CCK_PROBE_CORR 5
454 #define AR5K_GAIN_CCK_OFDM_GAIN_DELTA 15
455 #define AR5K_GAIN_STEP_COUNT 10
459 #define AR5K_GAIN_CHECK_ADJUST(_g) \
460 ((_g)->g_current <= (_g)->g_low || (_g)->g_current >= (_g)->g_high)
497 { { 4, 1, 1, 1 }, 6 },
498 { { 4, 0, 1, 1 }, 4 },
499 { { 3, 1, 1, 1 }, 3 },
500 { { 4, 0, 0, 1 }, 1 },
501 { { 4, 1, 1, 0 }, 0 },
502 { { 4, 0, 1, 0 }, -2 },
503 { { 3, 1, 1, 0 }, -3 },
504 { { 4, 0, 0, 0 }, -4 },
505 { { 2, 1, 1, 0 }, -6 }
524 { { 3, 0, 0, 0, 0, 0, 0 }, 6 },
525 { { 2, 0, 0, 0, 0, 0, 0 }, 0 },
526 { { 1, 0, 0, 0, 0, 0, 0 }, -3 },
527 { { 0, 0, 0, 0, 0, 0, 0 }, -6 },
528 { { 0, 1, 1, 0, 0, 0, 0 }, -8 },
529 { { 0, 1, 1, 0, 1, 1, 0 }, -10 },
530 { { 0, 1, 0, 1, 1, 1, 0 }, -13 },
531 { { 0, 1, 0, 1, 1, 0, 1 }, -16 },