This allows wificond to return a cached frequency upon signal poll.
This frequency is updated upon MLME events.
Bug:
31595463
Test: compile, manual test
Change-Id: Iae82a8143ee87c44bade1c376a55025fae61f490
// Do signal poll for this interface.
// First element in array is the RSSI value in dBM.
// Second element in array is the transmission bit rate in Mbps.
+ // Third element in array is the association frequency in MHz.
// This call is valid only when interface is associated with an AP, otherwise
// it returns an empty array.
int[] signalPoll();
// Convert from 100kbit/s to Mbps.
out_signal_poll_results->push_back(
static_cast<int32_t>(station_info.station_tx_bitrate/10));
+ // Association frequency.
+ out_signal_poll_results->push_back(
+ static_cast<int32_t>(associate_freq_));
return true;
}