...
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 Change interface_info structure to have rdk_index associated with this interface. Obtain the right radio_info instead of structure using the function get_radio_by_phyrdk_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.instead of get_radio_by_phy_index.
- phy_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 _call.
...
- 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.
- wifi_hal_purgeScanResult: get_radio_by_phy_index was used to obtain the interface for purging the scan result. Simplify this by using get_interface_by_vap_index and remove the usage of get_radio_by_phy_index.
- 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
.
Onewifi
- Needs to check further whether there is any direct usage of phy_index instead of rdk_radio_index. Study in progress.
hostap
- No changes required in hostap patches.
References
- PoC to create interfaces under single Phy using netlink - https://github.com/cpokuru/NetlinkApis/tree/main
...