@@ -703,9 +703,16 @@ static iw_handler get_handler(struct net_device *dev, unsigned int cmd)
#ifdef CONFIG_CFG80211_WEXT
if (dev->ieee80211_ptr && dev->ieee80211_ptr->wiphy) {
- wireless_warn_cfg80211_wext();
- if (dev->ieee80211_ptr->wiphy->flags & WIPHY_FLAG_SUPPORTS_MLO)
- return NULL;
+ switch (cmd) {
+ case SIOCGIWNAME:
+ case SIOCGIWMODE:
+ break;
+ default:
+ wireless_warn_cfg80211_wext();
+ if (dev->ieee80211_ptr->wiphy->flags &
+ WIPHY_FLAG_SUPPORTS_MLO)
+ return NULL;
+ }
handlers = dev->ieee80211_ptr->wiphy->wext;
}
#endif