Skip to contentSkip to conversation

multiple virtual ad-hoc interfaces

ath9k-devel gaston 3 participants 3 messages Jun 24, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1308917585.2017.10.camel@gaston

gaston

author
#1 lore raw
Quoted 11 lines · gtolon at inti.gob.ar
Quoted 6 lines

Hi

We are trying to use 2 virtual interfaces in ad-hoc mode using the iw utility and an atheros chipset 9285, but we can?t bring up both them. When we try with the second a "device or resource bussy" message appears. Thank you in advance.

This limitation is intentional. The driver doesn't support more than one ad-hoc interface. From drivers/net/wireless/ath/ath9k/main.c:

Quoted 13 lines

if ((ah->opmode == NL80211_IFTYPE_ADHOC) ||

    ((vif->type == NL80211_IFTYPE_ADHOC) &&
     sc->nvifs > 0)) {
        ath_err(common, "Cannot create ADHOC interface when other"
                " interfaces already exist.\n");
        ret = -EINVAL;
        goto out;
Signature · 2 lines
Regards,
Pavel Roskin

Hello, i'm having the same issue with multiple ad-hocs interfaces. The limitation is just for ad-hoc interfaces, or any beaconing interfaces? Because i need two interfaces, Ad-Hoc and AP Mode simultaneously, is that possible with this driver?
Thanks in advance,

P?rez, Gast?n Ezequiel

#2 lore raw
Quoted 25 lines · gaston
Quoted 20 lines · gtolon at inti.gob.ar
Quoted 6 lines

Hi

We are trying to use 2 virtual interfaces in ad-hoc mode using the iw utility and an atheros chipset 9285, but we can?t bring up both them. When we try with the second a "device or resource bussy" message appears. Thank you in advance.

This limitation is intentional. ?The driver doesn't support more than one ad-hoc interface. ?From drivers/net/wireless/ath/ath9k/main.c:

if ((ah->opmode == NL80211_IFTYPE_ADHOC) ||
? ? ((vif->type == NL80211_IFTYPE_ADHOC) &&
? ? ?sc->nvifs > 0)) {
? ? ? ? ath_err(common, "Cannot create ADHOC interface when other" ? ? ? ? ? ? ? ? " interfaces already exist.\n");
? ? ? ? ret = -EINVAL;
? ? ? ? goto out;

Quoted 4 lines

--
Regards,
Pavel Roskin

Quoted 5 lines

Hello, i'm having the same issue with multiple ad-hocs interfaces. The limitation is just for ad-hoc interfaces, or any beaconing interfaces? Because i need two interfaces, Ad-Hoc and AP Mode simultaneously, is that possible with this driver?
Thanks in advance,

*if you have one interface as ad-hoc you cannot have other interface. limitation of the drive due to TSF.
*mac80211 restricts you cannot more than 1 ad-hoc interface.

I really don't know much about the details why is it like that... need to look at the code :)

Quoted 10 lines

P?rez, Gast?n Ezequiel

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Signature · 1 line
shafi
#3 lore raw

Finally we used hostapd to set an AP in wlan1, and created a virtual interface in ad-hoc mode using iw. When tryed to bring up the ad-hoc after the AP a "invalid argument" error appeared, but bringing the AP down, then the ad-hoc up and the AP up again it seemed to work OK. We?ll keep testing this configuration. Thank you very much for your answers.

Mohammed Shafi <[email protected]> ha escrito:

Quoted 59 lines · gaston
Quoted 25 lines
Quoted 20 lines · gtolon at inti.gob.ar
Quoted 6 lines

Hi

We are trying to use 2 virtual interfaces in ad-hoc mode using the iw utility and an atheros chipset 9285, but we can?t bring up both them. When we try with the second a "device or resource bussy" message appears. Thank you in advance.

This limitation is intentional. ?The driver doesn't support more than one ad-hoc interface. ?From drivers/net/wireless/ath/ath9k/main.c:

if ((ah->opmode == NL80211_IFTYPE_ADHOC) ||
? ? ((vif->type == NL80211_IFTYPE_ADHOC) &&
? ? ?sc->nvifs > 0)) {
? ? ? ? ath_err(common, "Cannot create ADHOC interface when other" ? ? ? ? ? ? ? ? " interfaces already exist.\n");
? ? ? ? ret = -EINVAL;
? ? ? ? goto out;

Quoted 4 lines

--
Regards,
Pavel Roskin

Quoted 5 lines

Hello, i'm having the same issue with multiple ad-hocs interfaces. The limitation is just for ad-hoc interfaces, or any beaconing interfaces? Because i need two interfaces, Ad-Hoc and AP Mode simultaneously, is that possible with this driver?
Thanks in advance,

*if you have one interface as ad-hoc you cannot have other interface. limitation of the drive due to TSF.
*mac80211 restricts you cannot more than 1 ad-hoc interface.

I really don't know much about the details why is it like that... need to look at the code :)

Quoted 10 lines

P?rez, Gast?n Ezequiel

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

--
shafi
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel