Skip to contentSkip to conversation

2.6.25 kernel & compat-wireless-2009-09-14

DISCUSSION Nikolai ZHUBR 3 participants 5 messages Sep 16, 2009 – Sep 17, 2009 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 9 lines · Nikolai ZHUBR

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?

FIgure out what the bus_id is used for first.

Luis

#2 lore raw
Quoted 7 lines · Luis R. Rodriguez
Quoted 5 lines

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?

FIgure out what the bus_id is 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

maintainer
#3 lore raw
Quoted 14 lines · Nikolai ZHUBR
Quoted 7 lines · Luis R. Rodriguez
Quoted 5 lines

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?

FIgure out what the bus_id is 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

#4 lore raw
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