diff
1 int iwl_mvm_mld_rm_sta_id(struct iwl_mvm *mvm, u8 sta_id)
+ 2  const u8 max_sta_id = MAX_STA_ID; // MAX_STA_ID should be defined based on the valid range
3  int ret;
+ 4  if (sta_id >= max_sta_id) {
+ 5      return -EINVAL; // or another appropriate error code
+ 6  }
7  ret = iwl_mvm_mld_rm_sta_from_fw(mvm, sta_id);
