Better debug options for mods.

FossilOrigin-Name: 4fd4dd16e470f78d30afa54005a70452c95b6499c789c3bcb2a4fc73397e32f3
This commit is contained in:
7u83@mail.ru
2016-03-09 17:39:57 +00:00
parent 883c253f31
commit 5d5f22ce4e
10 changed files with 25 additions and 7 deletions

View File

@ -31,9 +31,11 @@ static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int ele
return 0;
int wbid = cw_get_hdr_wbid(rawmsg);
if (wbid != CW_WBID_IEEE80211 )
if (wbid != CW_WBID_IEEE80211 ) {
cw_dbg(DBG_MOD,"CAPWAP80211 detected: no, my wbid=%d, remote wbid=%d",CW_WBID_IEEE80211,wbid);
return 0;
}
cw_dbg(DBG_MOD,"CAPWAP80211 detected: yes");
return 1;
}