undefined4
RT_CfgSetWPAPSKKey(undefined4 param_1,char *param_2,undefined4 param_3,undefined4 param_4,
                  void *param_5)

{
  size_t sVar1;
  undefined4 uVar2;
  undefined1 auStack_40 [40];
  
  sVar1 = strlen(param_2);
  if (sVar1 - 8 < 0x39) {
    memset(param_5,0,0x20)   //possible issue identified - semgrep
    if (sVar1 == 0x40) {
      AtoH(param_2,param_5,0x20);
      uVar2 = 1;
    }
    else {
      RtmpPasswordHash(param_2,param_3,param_4,auStack_40);
      memmove(param_5,auStack_40,0x20)   //possible issue identified - semgrep
      uVar2 = 1;
    }
  }
  else {
    uVar2 = 0;
    if (2 < RTDebugLevel) {
      printk("WPAPSK Key length(%d) error, required 8 ~ 64 characters!(keyStr=%s)\n",sVar1,param_2);
      uVar2 = 0;
    }
  }
  return uVar2;
}