// Synchronous version of |RegisterHandlerAndSendMessage|.
// Returns true on successfully receiving an valid reply.
// Reply packets will be stored in |response|.
- bool SendMessageAndGetResponses(const NL80211Packet& packet,
- std::vector<NL80211Packet>* response);
+ virtual bool SendMessageAndGetResponses(const NL80211Packet& packet,
+ std::vector<NL80211Packet>* response);
+ // Sign-up to receive and log multicast events of a specific type.
+ // |group| is one of the string NL80211_MULTICAST_GROUP_* in nl80211.h.
+ virtual bool SubscribeToEvents(const std::string& group);
+
private:
bool SetupSocket(android::base::unique_fd* netlink_fd);
bool WatchSocket(android::base::unique_fd* netlink_fd);