[PATCH 5.10 279/523] wifi: iwlegacy: Check rate_idx range after addition