[PATCH 6.16 320/570] wifi: iwlegacy: Check rate_idx range after addition