[PATCH 5.4 224/403] wifi: iwlegacy: Check rate_idx range after addition