[PATCH 5.15 367/644] wifi: iwlegacy: Check rate_idx range after addition