Lines Matching refs:res
562 int res = create(NL80211_CMD_VENDOR); in create() local
563 if (res < 0) { in create()
564 return res; in create()
567 res = put_u32(NL80211_ATTR_VENDOR_ID, id); in create()
568 if (res < 0) { in create()
569 return res; in create()
572 res = put_u32(NL80211_ATTR_VENDOR_SUBCMD, subcmd); in create()
573 if (res < 0) { in create()
574 return res; in create()
578 res = set_iface_id(mIface); in create()
581 return res; in create()
619 int res = nl_recvmsgs(mInfo->cmd_sock, cb); in requestResponse() local
620 if (res) { in requestResponse()
621 ALOGE("nl80211: %s->nl_recvmsgs failed: %d", __FUNCTION__, res); in requestResponse()
632 int res = wifi_register_handler(wifiHandle(), cmd, event_handler, this); in requestEvent() local
633 if (res < 0) { in requestEvent()
634 return res; in requestEvent()
637 res = create(); /* create the message */ in requestEvent()
638 if (res < 0) in requestEvent()
641 res = nl_send_auto_complete(mInfo->cmd_sock, mMsg.getMessage()); /* send message */ in requestEvent()
642 if (res < 0) in requestEvent()
645 res = mCondition.wait(); in requestEvent()
646 if (res < 0) in requestEvent()
651 return res; in requestEvent()
656 int res = wifi_register_vendor_handler(wifiHandle(), id, subcmd, event_handler, this); in requestVendorEvent() local
657 if (res < 0) { in requestVendorEvent()
658 return res; in requestVendorEvent()
661 res = create(); /* create the message */ in requestVendorEvent()
662 if (res < 0) in requestVendorEvent()
665 res = nl_send_auto_complete(mInfo->cmd_sock, mMsg.getMessage()); /* send message */ in requestVendorEvent()
666 if (res < 0) in requestVendorEvent()
669 res = mCondition.wait(); in requestVendorEvent()
670 if (res < 0) in requestVendorEvent()
675 return res; in requestVendorEvent()
682 int res = reply.parse(); in response_handler() local
683 if (res < 0) { in response_handler()
684 ALOGE("Failed to parse reply message = %d", res); in response_handler()
695 int res = event.parse(); in event_handler() local
696 if (res < 0) { in event_handler()
697 ALOGE("Failed to parse event = %d", res); in event_handler()
698 res = NL_SKIP; in event_handler()
700 res = cmd->handleEvent(event); in event_handler()
704 return res; in event_handler()
835 int res = requestVendorEvent(mVendor_id, mSubcmd); in requestEvent() local
836 return res; in requestEvent()