[PATCH 6.1 152/482] wifi: iwlegacy: Check rate_idx range after addition