Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: Wilink6 different behavior between C App and wlan_cu

$
0
0

Hi Team,

i observe following behavior during the continuous TX with OMAP3530 and WL1271, linux kernel 2.6.33

It works with wlan_cu:

The C application shows some error and there are no packets:

 Here is the C code:

   nParm=1;
   parm.value=1; // 0 - Auto, 1 - Active, 2 - Short Doze, 3 - Long Dozw
   CuCmd_SetPowerMode(pConsole->hCuCmd, &parm, nParm);
   parm.value=2;
   CuCmd_SetDefaultPowerLevel(pConsole->hCuCmd, &parm, nParm);
   parm.value=2;
   CuCmd_SetPowerSavePowerLevel(pConsole->hCuCmd, &parm, nParm);

    parm1[0].value = (U32) cJSON_GetObjectItem(pRoot, "Band")->valueint;
    parm1[1].value = (U32) cJSON_GetObjectItem(pRoot, "Channel")->valueint;
    nParm1=2;
 
    parm2[0].value = (U32) cJSON_GetObjectItem(pRoot, "Delay")->valueint;
    parm2[1].value = (U32) cJSON_GetObjectItem(pRoot, "Rate")->valueint;
    parm2[2].value = (U32) cJSON_GetObjectItem(pRoot, "Size")->valueint;
    parm2[3].value = (U32) cJSON_GetObjectItem(pRoot, "Amount")->valueint;
    parm2[4].value = (U32) cJSON_GetObjectItem(pRoot, "Power")->valueint;
    parm2[5].value = (U32) cJSON_GetObjectItem(pRoot, "Seed")->valueint;
    parm2[6].value = (U32) cJSON_GetObjectItem(pRoot, "PacketMode")->valueint;
    parm2[7].value = (U32) cJSON_GetObjectItem(pRoot, "DcfOnOff")->valueint;
    parm2[8].value = (U32) cJSON_GetObjectItem(pRoot, "GI")->valueint;
    parm2[9].value = (U32) cJSON_GetObjectItem(pRoot, "Preamble")->valueint;
    parm2[10].value = (U32) cJSON_GetObjectItem(pRoot, "Type")->valueint;
    parm2[11].value = (U32) cJSON_GetObjectItem(pRoot, "Scrambler")->valueint;
    parm2[12].value = (U32) cJSON_GetObjectItem(pRoot, "EnableCLPC")->valueint;
    parm2[13].value = (U32) cJSON_GetObjectItem(pRoot, "SeqNumMode")->valueint;
    /* MAC Adresse ist optional und wird nicht ausgewertet */
    nParm2=14;

   /* Band und Kanal einstellen */
   CuCmd_RadioDebug_ChannelTune(pConsole->hCuCmd, parm1, nParm1);
   /* Start */
   CuCmd_RadioDebug_StartContinuousTx(pConsole->hCuCmd, parm2, nParm2);


Do you see any errors in the C code?

Thanks and regards,

Oleg


Viewing all articles
Browse latest Browse all 116964

Trending Articles