ALOGD("found attribute %s", attributeToString(i));
}
}
-
- ALOGD("-- End of message --");
}
const char *WifiEvent::get_cmdString() {
/* Event handlers */
int WifiCommand::response_handler(struct nl_msg *msg, void *arg) {
- ALOGD("response_handler called");
WifiCommand *cmd = (WifiCommand *)arg;
WifiEvent reply(msg);
int res = reply.parse();
/* Other event handlers */
int WifiCommand::valid_handler(struct nl_msg *msg, void *arg) {
- ALOGD("valid_handler called");
int *err = (int *)arg;
*err = 0;
return NL_SKIP;
}
int WifiCommand::ack_handler(struct nl_msg *msg, void *arg) {
- ALOGD("ack_handler called");
int *err = (int *)arg;
*err = 0;
return NL_STOP;
}
int WifiCommand::finish_handler(struct nl_msg *msg, void *arg) {
- ALOGD("finish_handler called");
int *ret = (int *)arg;
*ret = 0;
return NL_SKIP;
int ret = mMsg.create(GOOGLE_OUI, SLSI_NL80211_VENDOR_SUBCMD_GET_CAPABILITIES);
if (ret < 0) {
- ALOGD("NL message creation failed");
+ ALOGE("NL message creation failed");
return ret;
}
protected:
virtual int handleResponse(WifiEvent& reply) {
- ALOGD("In GetCapabilities::handleResponse");
-
if (reply.get_cmd() != NL80211_CMD_VENDOR) {
ALOGD("Ignoring reply with cmd = %d", reply.get_cmd());
return NL_SKIP;
void *data = reply.get_vendor_data();
int len = reply.get_vendor_data_len();
- ALOGD("Id = %0x, subcmd = %d, len = %d, expected len = %d", id, subcmd, len,
+ ALOGD("GetCapabilities::handleResponse - Id = %0x, subcmd = %d, len = %d, expected len = %d", id, subcmd, len,
sizeof(*mCapabilities));
memcpy(mCapabilities, data, min(len, (int) sizeof(*mCapabilities)));
protected:
virtual int handleResponse(WifiEvent& reply) {
- ALOGD("In GetChannelList::handleResponse");
-
if (reply.get_cmd() != NL80211_CMD_VENDOR) {
ALOGD("Ignoring reply with cmd = %d", reply.get_cmd());
return NL_SKIP;
nlattr *vendor_data = reply.get_attribute(NL80211_ATTR_VENDOR_DATA);
int len = reply.get_vendor_data_len();
- ALOGD("Id = %0x, subcmd = %d, len = %d", id, subcmd, len);
+ ALOGD("GetChannelList::handleResponse - Id = %0x, subcmd = %d, len = %d", id, subcmd, len);
if (vendor_data == NULL || len == 0) {
ALOGE("no vendor data in GetChannelList response; ignoring it");
return NL_SKIP;
if(event_id == GSCAN_EVENT_COMPLETE_SCAN) {
if (vendor_data == NULL || len != 4) {
- ALOGD("Scan complete type not mentioned!");
+ ALOGE("Scan complete type not mentioned!");
return NL_SKIP;
}
wifi_scan_event evt_type;
}
virtual int handleResponse(WifiEvent& reply) {
- ALOGD("In GetScanResultsCommand::handleResponse");
if (reply.get_cmd() != NL80211_CMD_VENDOR) {
ALOGD("Ignoring reply with cmd = %d", reply.get_cmd());
int id = reply.get_vendor_id();
int subcmd = reply.get_vendor_subcmd();
- ALOGD("Id = %0x, subcmd = %d", id, subcmd);
+ ALOGD("GetScanResultsCommand::handleResponse - Id = %0x, subcmd = %d", id, subcmd);
nlattr *vendor_data = reply.get_attribute(NL80211_ATTR_VENDOR_DATA);
int len = reply.get_vendor_data_len();
int len = event.get_vendor_data_len();
if (vendor_data == NULL || len == 0) {
- ALOGD("No scan results found");
+ ALOGE("No scan results found");
return NL_SKIP;
}
int len = event.get_vendor_data_len();
if (vendor_data == NULL || len == 0) {
- ALOGD("No scan results found");
+ ALOGE("No scan results found");
return NL_SKIP;
}