Skip to contentSkip to conversation

Netlink Question

DISCUSSION C. McPherson 3 participants 5 messages Aug 11, 2014 – Aug 14, 2014

lore
Share & tools
lore
#0 lore raw

I have some private WiFi ioctl's that are associated with a couple of drivers and I would like to convert those private ioctl's into netlink. Does anyone know if there is any documentation on this or a URL that I could reference before I attempt?

Thanks in advance
Clyde

#1 lore raw

+ linux-wireless

Not really a backports question so adding linux-wireless

Quoted 4 lines · C. McPherson

I have some private WiFi ioctl's that are associated with a couple of drivers and I would like to convert those private ioctl's into netlink. Does anyone know if there is any documentation on this or a URL that I could reference before I attempt?

I guess the "private WiFi ioctl's" you are referring to are the ones used in Android wpa_supplicant driver_cmd lib? There is no real cookbook on how to add nl80211 commands (maybe I am wrong here), but there are sufficient patches to be found in the linux-wireless archive. A recent one about key management offload adds a couple of commands and attributes which may give an idea what is needed:

http://mid.gmane.org/[email protected]

Obviously, you need to modify the "couple of drivers" to deal with the nl80211 netlink commands.

Regards,
Arend

Quoted 7 lines

Thanks in advance
Clyde

--
To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 13 lines · Arend van Spriel

+ linux-wireless

Not really a backports question so adding linux-wireless

Quoted 5 lines · C. McPherson

I have some private WiFi ioctl's that are associated with a couple of drivers and I would like to convert those private ioctl's into netlink. Does anyone know if there is any documentation on this or a URL that I could reference before I attempt?

Quoted 6 lines

I guess the "private WiFi ioctl's" you are referring to are the ones used in Android wpa_supplicant driver_cmd lib? There is no real cookbook on how to add nl80211 commands (maybe I am wrong here), but there are sufficient patches to be found in the linux-wireless archive. A recent one about key management offload adds a couple of commands and attributes which may give an idea what is needed:

http://mid.gmane.org/[email protected]

Obviously, you need to modify the "couple of drivers" to deal with the nl80211 netlink commands.

We had same requirement in our driver, we have patched the iw to send custom commands specific to our hardware and used NL80211_CMD_TESTMODE to process and send it to driver.

#3 lore raw
Quoted 17 lines · Krishna Chaitanya
Quoted 10 lines · Arend van Spriel

+ linux-wireless

Not really a backports question so adding linux-wireless

Quoted 4 lines · C. McPherson

I have some private WiFi ioctl's that are associated with a couple of drivers and I would like to convert those private ioctl's into netlink. Does anyone know if there is any documentation on this or a URL that I could reference before I attempt?

Quoted 6 lines

I guess the "private WiFi ioctl's" you are referring to are the ones used in Android wpa_supplicant driver_cmd lib? There is no real cookbook on how to add nl80211 commands (maybe I am wrong here), but there are sufficient patches to be found in the linux-wireless archive. A recent one about key management offload adds a couple of commands and attributes which may give an idea what is needed:

http://mid.gmane.org/[email protected]

Obviously, you need to modify the "couple of drivers" to deal with the nl80211 netlink commands.

Quoted 8 lines

We had same requirement in our driver, we have patched the iw to send custom commands specific to our hardware and used NL80211_CMD_TESTMODE to process and send it to driver.
--
To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Yeah thanks a lot, I could use NL80211_CMD_TESTMODE, I'll have to check that out. I was also thinking about using NL80211_CMD_VENDOR. These IOCTL's are not and will not be used by wpa_supplicant (but I will check out the URL you sent), they are just some custom commands we use with several chipsets.

-Clyde

#4 lore raw
Quoted 35 lines · C. McPherson
Quoted 25 lines · Krishna Chaitanya
Quoted 17 lines · Arend van Spriel

+ linux-wireless

Not really a backports question so adding linux-wireless

Quoted 4 lines · C. McPherson

I have some private WiFi ioctl's that are associated with a couple of drivers and I would like to convert those private ioctl's into netlink. Does anyone know if there is any documentation on this or a URL that I could reference before I attempt?

I guess the "private WiFi ioctl's" you are referring to are the ones used in Android wpa_supplicant driver_cmd lib? There is no real cookbook on how to add nl80211 commands (maybe I am wrong here), but there are sufficient patches to be found in the linux-wireless archive. A recent one about key management offload adds a couple of commands and attributes which may give an idea what is needed:

Quoted 6 lines

http://mid.gmane.org/[email protected]

Obviously, you need to modify the "couple of drivers" to deal with the nl80211 netlink commands.

Quoted 8 lines

We had same requirement in our driver, we have patched the iw to send custom commands specific to our hardware and used NL80211_CMD_TESTMODE to process and send it to driver.
--
To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 5 lines

Yeah thanks a lot, I could use NL80211_CMD_TESTMODE, I'll have to check that out. I was also thinking about using NL80211_CMD_VENDOR. These IOCTL's are not and will not be used by wpa_supplicant (but I will check out the URL you sent), they are just some custom commands we use with several chipsets.

If you are using recent kernel or backports package, I would say go for the vendor command. It is quite similar to TESTMODE except that it is always enabled, ie. not depending on kernel config.

However, if the custom commands would add functionality that might be interesting to linux-wireless drivers in general you may consider adding them as nl80211 commands.

Regards,
Arend