Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Config: physical_devices doubt: phy0 vs radio0 #3

Closed
nemesifier opened this issue Nov 27, 2014 · 4 comments
Closed

Device Config: physical_devices doubt: phy0 vs radio0 #3

nemesifier opened this issue Nov 27, 2014 · 4 comments

Comments

@nemesifier
Copy link
Member

Is there difference between phy0 and radio0?

In the nodewatcher-agent example posted in #1 both are mentioned but only radio0 has a definition.

Via openwrt ubus I see no mention of any phy object, but I see mention of radio0 (via ubus call network.wireless status, just it doesnt have the information contained in our physical_devices section, but something slightly different.

Via the iw command I see that interfaces reference a phy object, and iw phy returns all the capabilities of the physical device.

I am a bit confused. Can anyone bring some clarity?

@nemesifier nemesifier added this to the Pre-implementation draft milestone Nov 27, 2014
@nemesifier nemesifier changed the title physical_devices doubt: phy0 vs radio0 Device Config: physical_devices doubt: phy0 vs radio0 Nov 27, 2014
@kostko
Copy link
Member

kostko commented Nov 27, 2014

radio0 comes from the UCI configuration section name while phy0 comes from the driver in the kernel. The physical device associated with a wireless interface in UCI may be configured using the phy attribute, for example:

config wifi-device 'radio0'
    ...
    option phy 'phy0'

This is how you configure multiple radios on a device. You may also use the MAC address using the macaddr attribute.

I am not sure how this is for non-mac80211 drivers.

@nemesifier
Copy link
Member Author

thx @kostko - in the meanwhile i'm trying to get more feedback on other channels, will post here updates

@nemesifier
Copy link
Member Author

information from Jow (openwrt):

phy0 is a mac80211 specific concept
radio0 is an abstract openwrt identifier for "first radio"
on mac80211 this usually maps to pyh0
on proprietary broadcom it would be wl0
on atheros it would be ath0
and so on

@nemesifier
Copy link
Member Author

I think it's clear now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants