M66 bluetooth_DirectConn

hi i work with m66 bluetooth and I want to connect to a specific MAC address so i use"RIL_BT_SPP_DirectConn" but not work and and the module not work after i use this and i must restart the power…
how i use this function?and Where am I wrong?

if(0 == Ql_memcmp(m_RxBuf_Uart1,“direct”,6))
{

       ret = RIL_BT_SPP_DirectConn("98E7F53FxxB0",BT_SPP_CONN_MODE_BUF,"123456");
                if(RIL_AT_SUCCESS == ret)
                {
                    APP_DEBUG("DirectConn successful.\r\n");
                }
                else
                {
                    APP_DEBUG("DirectConn failed.\r\n");
                }
   break;
            }

Dear Sir:
s32 RIL_BT_SPP_DirectConn(char* btMacAddr, u8 mode, char* pinCode)
{
char strAT[20];

if(NULL == btMacAddr)
{
    return RIL_AT_INVALID_PARAM;
}

if(mode < BT_SPP_CONN_MODE_AT || mode > BT_SPP_CONN_MODE_TRANS)
{
    return RIL_AT_INVALID_PARAM;
}

Ql_sprintf(strAT, "AT+QBTCONND=%s,%d,\"%s\"", btMacAddr, mode, pinCode);
return Ql_RIL_SendATCmd(strAT, Ql_strlen(strAT), NULL, NULL, 0);

}

The array inside this ril interface strAT is small, you could change to enough