2015-01-29 21:45:58

by Stefano Cappa

[permalink] [raw]
Subject: "iw": two small questions

SGksIGkndmUgdHdvIHF1ZXN0aW9uIGFib3V0IGl3CgoxKSBJdCdzIHBvc3NpYmlsZSB0aGF0wqAi
aXcgcGh5IHBoeTAgaW5mb+KAiyIgc2FpZCB0aGF0IGkgY2FuIHVzZSBhIHBhcnRpY3VsYXIgY29t
YmluYXRpb24gb2YgaW50ZXJmYWNlcyBpbiAiVmFsaWQgaW50ZXJmYWNlIGNvbWJpbmF0aW9ucyIg
YnV0IG9uIG15IGRldmljZSBpIGNhbid0IHVzZSB0aGlzIGNvbWJpbmF0aW9uPyBJZiB5ZXMsIHRo
ZSBwcm9ibGVtIGlzIHdpdGggdGhlIGRyaXZlciBvZiB0aGlzIGRldmljZT8KCjIpIEhvdyBpdyBv
YnRhaW5zIHTigItoZSBpbmZvcm1hdGlvbsKgdG8gcHJpbnQgIlZhbGlkIGludGVyZmFjZSBjb21i
aW5hdGlvbnMiPyBpdyBhc2tzIHRoaXMgaW5mb3JtYXRpb24gdG8gdGhlIGRyaXZlci9oYXJkd2Fy
ZS9vciBzb21ldGhpbmcgZWxzZcKgPwoKClRoYW5rIHUgdmVyeSBtdWNoLApTdGVmYW5v4oCLCgoK
ICAgIA==


2015-01-29 22:07:35

by Rafał Miłecki

[permalink] [raw]
Subject: Re: "iw": two small questions

On 29 January 2015 at 22:14, Stefano Cappa <[email protected]> wrote:
> 1) It's possibile that "iw phy phy0 info" said that i can use a particular combination of interfaces in "Valid interface combinations" but on my device i can't use this combination? If yes, the problem is with the driver of this device?

Could happen. @add_virtual_intf (see struct cfg80211_ops) can fail.


> 2) How iw obtains the information to print "Valid interface combinations"? iw asks this information to the driver/hardware/or something else ?

See "struct wiphy" and its
const struct ieee80211_iface_combination *iface_combinations;

--
Rafał

2015-01-29 22:00:21

by Krishna Chaitanya

[permalink] [raw]
Subject: Re: "iw": two small questions

On Fri, Jan 30, 2015 at 2:44 AM, Stefano Cappa
<[email protected]> wrote:
>
> Hi, i've two question about iw
>
> 1) It's possibile that "iw phy phy0 info" said that i can use a particular combination of interfaces in "Valid interface combinations" but on my device i can't use this combination? If yes, the problem is with the driver of this device?
>
> 2) How iw obtains the information to print "Valid interface combinations"? iw asks this information to the driver/hardware/or something else ?
>

Yes, it talks to the device driver and gets the combinations which the
device supports.