Testing ....

FossilOrigin-Name: c94bb8bd5a2ba1693b5e8dd8d36dc17e71da6f247755acb677a8cfb477824738
This commit is contained in:
7u83@mail.ru 2014-09-15 19:47:21 +00:00
parent c80e4be585
commit efaa22e3cb
1 changed files with 10 additions and 3 deletions

View File

@ -69,7 +69,14 @@ static int nlCallback(struct nl_msg *msg, void *arg)
struct nlattr *nla;
nla_for_each_attr(nla,head,alen,rem){
printf("ATR Type: %d - %s\n",nla->nla_type,nlt_get_attrname(nla->nla_type));
//printf("ATR Type: %d - %s\n",nla->nla_type,nlt_get_attrname(nla->nla_type));
if (nla->nla_type==NL80211_ATTR_SUPPORTED_COMMANDS){
printf("Supported commands found, len = %d\n",nla->nla_len);
}
}
@ -182,7 +189,7 @@ void gr()
nl_socket_modify_cb(sk, NL_CB_VALID, NL_CB_CUSTOM, nlCallback,
NULL);
/*
printf("Mak If\n");
make_if(sk);
printf("made if\n");
@ -193,7 +200,7 @@ sleep(100);
return;
*/
//allocate a message
struct nl_msg *msg = nlmsg_alloc();