OSDN Git Service

Better logging for GetWiphyInfo()
authorNingyuan Wang <nywang@google.com>
Fri, 10 Feb 2017 02:08:40 +0000 (18:08 -0800)
committerNingyuan Wang <nywang@google.com>
Fri, 10 Feb 2017 17:44:42 +0000 (09:44 -0800)
commit384f74dea0ad3b792428f39305b19c42c92c4039
treecb55323c285b8a8285f2842d64269a0d323ce120
parent8f62fdd7479506aa865560941d74dc4e4c77e1b3
Better logging for GetWiphyInfo()

NL80211_ATTR_WIPHY_BANDS contains a list of anonymous attributes.
Each anonymous attribute represents a band.
NL80211_BAND_ATTR_FREQ is expected to be included in every anonymous
attribute to specifying supported channels for this band.

However, sometimes one of the anonymous attribute provided by kernel is
empty, where NL80211_BAND_ATTR_FREQ is not included. This always happens
on some type of devices. We should not log an error for this.

Bug: 35220903
Test: compile, unit tests, manual test

Change-Id: I0ef953266744713af627a17e7d10f04b937e0648
client_interface_impl.cpp
net/netlink_utils.cpp