Skip to content

Commit

Permalink
Remove some repeated log in Wifi hal
Browse files Browse the repository at this point in the history
Remove below repeated log:
10-15 11:22:21.370   522  1348 E wifi hal: Out of event poll
10-15 11:22:21.370   522  1348 D wifi hal: Data on event socket 0
10-15 11:22:21.370   522  1348 D wifi hal: Drv Event 70 received

Tests:
above log disapeared

Tracked-On: OAM-126416
Signed-off-by: Ye, Zhao <[email protected]>
  • Loading branch information
zhaoye1 committed Oct 15, 2024
1 parent cc1ff1f commit 167d61f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/driver_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ static int nl80211_process_event(struct nl_msg *msg, void *arg)
nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
genlmsg_attrlen(gnlh, 0), NULL);

hal_printf(MSG_DEBUG, "Drv Event %d received", gnlh->cmd);
//hal_printf(MSG_DEBUG, "Drv Event %d received", gnlh->cmd);

switch (gnlh->cmd) {
case NL80211_CMD_VENDOR:
Expand Down Expand Up @@ -2044,7 +2044,7 @@ void driver_if_events(void *handle)
while (!drv->in_cleanup) {
pfd[1].fd = drv->nl_rtt ? nl_socket_get_fd(drv->nl_rtt) : -1;
int res = ppoll(pfd, NFDS, &ts, &sms);
hal_printf(MSG_ERROR, "Out of event poll");
//hal_printf(MSG_ERROR, "Out of event poll");

if (res < 0 && errno != EINTR) {
hal_printf(MSG_ERROR,
Expand All @@ -2071,8 +2071,8 @@ void driver_if_events(void *handle)
"event socket %d closed", i);
break;
} else if (pfd[i].revents & POLLIN) {
hal_printf(MSG_DEBUG,
"Data on event socket %d", i);
//hal_printf(MSG_DEBUG,
// "Data on event socket %d", i);
event_handler_sock(i == 0 ?
drv->nl_event :
drv->nl_rtt);
Expand Down

0 comments on commit 167d61f

Please sign in to comment.