]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Extend the new vendor command for testing nl80211
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 5 Mar 2014 15:19:58 +0000 (17:19 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 5 Mar 2014 15:19:58 +0000 (17:19 +0200)
commit6b9f7af651f80ddbdb949ce1d1352aab9aa53022
treebefcc065d64a37c161e63e3510cb04d8fff1277c
parentb4343b9c940045296c386f0d15171cb6b0eb7383
nl80211: Extend the new vendor command for testing nl80211

CONFIG_TESTING_OPTIONS=y build of wpa_supplicant now allows arbitrary
cfg80211 commands to be performed through the new VENDOR ctrl_iface
command by using a special vendor_id ffffffff. The command identifier
(NL80211_CMD_*) is encoded as the subcmd and the attributes in the
hexformatted data area. Response attributes are returned as a hexdump.

For example, this shows a NL80211_CMD_FRAME and a response (cookie
attribute) on a little endian host:

wpa_cli -i wlan0 vendor ffffffff 59 080003004d0000000800260085090000....
0c00580000d7868c0388ffff

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c