undefined4 Set_ATE_BSSID_Proc(int param_1,char *param_2)

{
  size_t sVar1;
  byte *__s;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  
  sVar1 = strlen(param_2);
  uVar2 = 0;
  if (sVar1 == 0x11) {
    __s = (byte *)rstrtok(param_2,&_LC171)   //possible issue identified - semgrep
    iVar4 = 0;
    while (__s != (byte *)0x0) {
      sVar1 = strlen((char *)__s);
      iVar3 = param_1 + iVar4;
      iVar4 = iVar4 + 1;
      if (sVar1 != 2) {
        return 0;
      }
      if (((&_ctype)[*__s] & 0x44) == 0) {
        return 0;
      }
      if (((&_ctype)[__s[1]] & 0x44) == 0) {
        return 0;
      }
      AtoH(__s,iVar3 + 0x76a2c,1);
      __s = (byte *)rstrtok(0,&_LC171)   //possible issue identified - semgrep
    }
    uVar2 = 0;
    if (iVar4 == 6) {
      if (2 < RTDebugLevel) {
        printk("Set_ATE_BSSID_Proc (BSSID = %02x:%02x:%02x:%02x:%02x:%02x)\n",
               *(undefined1 *)(param_1 + 0x76a2c),*(undefined1 *)(param_1 + 0x76a2d),
               *(undefined1 *)(param_1 + 0x76a2e),*(undefined1 *)(param_1 + 0x76a2f),
               *(undefined1 *)(param_1 + 0x76a30),*(undefined1 *)(param_1 + 0x76a31));
      }
      uVar2 = 1;
      if (2 < RTDebugLevel) {
        printk("Ralink: Set_ATE_BSSID_Proc Success\n");
        uVar2 = 1;
      }
    }
  }
  return uVar2;
}