Cfg80211 phy index & usb hotplug

when plugging in a usb wifi adapter, cfg80211 increments to the next available phy index & assigns that index to the new wifi device

when plugging out that usb device, that cfg80211 phy index is not freed & returned back as available again

instead it keeps incrementing as phy3, phy4 … phy12 etc.

thereof every usb wifi that gets plugged in & out is pushing the cfg80211 phy index upwards

I am sure there is a very serious & important reason for this behavior, but is there a way to free & reclaim that phy index so the cfg80211 phy index points back to the actual available free phy index instead of an infinite incremental one ?

the only way (to my knowledge) to reset the cfg80211 phy index is by unloading & reloading the cfg80211 module

in that case, the phy index starts enumerating again back from 0