sprintf(buf,’Enable:%d‘,m_instance_wl[0].m_wlVar.wlEnbl*2+m_instance_wl[0].m_wlMssidVar[GUEST_BSS_IDX].wlEnblSsid);
void
gen_request_first (int * array, int sindex, int eindex)
{
int flags = 0, j = 0;
int index,enable = 0;
char buf[256];
buf[0] = '\0';
for( index = 0;index < 2;index++){
for (j = sindex; j < eindex; j++)
{
if (tempScheduler1.rule[index].items[whichday].start == array[j])
{
flags = 1;
}
if (tempScheduler1.rule[index].items[whichday].end == array[j])
{
flags = 0;
}
if (tempScheduler2.rule[index].items[whichday].start == array[j])
{
flags = 1;
}
if (tempScheduler2.rule[index].items[whichday].end == array[j])
{
flags = 0;
}
}
enable += flags;
enable <<= 1;
}
sleep(5);
enable >>=1;
sprintf (buf, "Enable:%d", enable);
send_msg_to_wlmngr(buf);
}
现象容易迷惑人。现象掩盖本质,看代码才是王道
阅读(314) | 评论(0) | 转发(0) |