...
The right radio info is then passed as arg to this function and can be accessed without calling get_radio_by_phy_index.
- wiphy_get_info_handler: Similar change as that of interface_info_handler to pass the right radio_info instance in the This function is passed as callback handler to nl80211_send_and_recv as part of nl80211_init_radio_info. This is called for each radio_info in the g_wifi_hal structure.
- Pass radio_info as argument to the function nl80211_send_and_recv
_call where - similar change as that of interface_info_handler.
- In wiphy_get_info_handler
is passed as callback function pointer- , based on the band associated with radio_info process the right band in the nested bands sent with attribute NL80211_ATTR_WIPHY_BANDS. In nl80211, band mapping is defined as per enum nl80211_band.
- remove_station_from_other_interfaces: Implement new function get_radio_from_interface_index to get the right radio_info instead of get_radio_by_phy_index. radio_info stores the various interface and interface_index associated with this radio. Thus we can obtain the right radio parsing this interface list.
- phy_info_handler: This function is passed as callback handler to nl80211_send_and_recv in update_channel_flags which does not use radio_info structure. In the phy_info_handler, based on the band obtained the channel flags has to be updated to the right radio_info structure.
- platform_get_radio_phytemperature: In broadcom platform.c file, get_radio_by_phy_index is called in this function. Instead of this function, obtain the appropriate radio_info pointer by calling get_radio_by_rdk_index.
...