Considering this scenario, is there any alternative approach that I could use to have this detection? Polling the phy, or something similar?
As I recall, David Sidrane submitted a PR to do just this but it was not incoporated. I don't recall why. I recall having some concerns that polling the PHY in maintenance mode would interfere with normal operational mode, but I think David demonstrated that there was not an issue with that.
I think these: https://github.com/apache/incubator-nuttx-apps/pull/402 https://github.com/apache/incubator-nuttx-apps/pull/415