2.6.25 kernel & compat-wireless-2009-09-14
Hello all,
After some more digging I think I've found an incompatibility.
device_add in 2.6.25.20 wants some bus_id, but bus_id seems to not be assigned anymore, so device_add fails. Therefore, wiphy_register fails, and then clearly ieee80211_register_hw fails too.
Any ideas how to properly fix this?
Thank you,
Nikolai
Quoted 9 lines · Nikolai ZHUBR
Hello all,
After some more digging I think I've found an incompatibility.
device_addin 2.6.25.20 wants somebus_id, butbus_idseems to not be assigned anymore, sodevice_addfails. Therefore,wiphy_registerfails, and then clearlyieee80211_register_hwfails too.Any ideas how to properly fix this?
FIgure out what the bus_id is used for first.
Luis
Quoted 7 lines · Luis R. Rodriguez
Quoted 5 lines
device_addin 2.6.25.20 wants somebus_id, butbus_idseems to not be assigned anymore, sodevice_addfails. Therefore,wiphy_registerfails, and then clearlyieee80211_register_hwfails too.Any ideas how to properly fix this?
FIgure out what the
bus_idis used for first.
Hmm, don't know, but the following helps and wlan0 appears:
net/wireless/core.c 2009-09-16 23:48:22.000000000 +0400 renamed from net/wireless/core.c 2009-09-16 23:45:40.000000000 +0400 +1 -0
@@ -350,6 +350,7 @@ /* give it a proper name */ dev_set_name(&rdev->wiphy.dev, PHY_NAME "%d", rdev->wiphy_idx); + snprintf(rdev->wiphy.dev.bus_id, BUS_ID_SIZE, PHY_NAME "%d", rdev->wiphy_idx); mutex_init(&rdev->mtx); mutex_init(&rdev->devlist_mtx);
Quoted 1 line
Luis
Johannes Berg
maintainerQuoted 14 lines · Nikolai ZHUBR
Quoted 7 lines · Luis R. Rodriguez
Quoted 5 lines
device_addin 2.6.25.20 wants somebus_id, butbus_idseems to not be assigned anymore, sodevice_addfails. Therefore,wiphy_registerfails, and then clearlyieee80211_register_hwfails too.Any ideas how to properly fix this?
FIgure out what the
bus_idis used for first.Hmm, don't know, but the following helps and wlan0 appears:
net/wireless/core.c 2009-09-16 23:48:22.000000000 +0400 line 353
Quoted 4 lines
net/wireless/core.c 2009-09-16 23:48:22.000000000 +0400 renamed from net/wireless/core.c 2009-09-16 23:45:40.000000000 +0400 +1
-0@@ -350,6 +350,7 @@ /* give it a proper name */ dev_set_name(&rdev->wiphy.dev, PHY_NAME "%d", rdev->wiphy_idx); + snprintf(rdev->wiphy.dev.bus_id, BUS_ID_SIZE, PHY_NAME "%d", rdev->wiphy_idx);
Isn't that exactly what dev_set_name() is/was supposed to do?
johannes
Quoted 10 lines · Johannes Berg
net/wireless/core.c 2009-09-16 23:48:22.000000000 +0400 line 353
Quoted 8 lines
net/wireless/core.c 2009-09-16 23:48:22.000000000 +0400 renamed from net/wireless/core.c 2009-09-16 23:45:40.000000000 +0400 +1
-0@@ -350,6 +350,7 @@ /* give it a proper name */ dev_set_name(&rdev->wiphy.dev, PHY_NAME "%d", rdev->wiphy_idx); + snprintf(rdev->wiphy.dev.bus_id, BUS_ID_SIZE, PHY_NAME "%d", rdev->wiphy_idx);Isn't that exactly what
dev_set_name()is/was supposed to do?
Well, probably yes, but still it doesn't set bus_id, I've checked. Probably it needs some correction.
Quoted 1 line
johannes