diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-16 08:55:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-24 16:18:00 -0400 |
commit | 60719ffd721f6764b7d07ca188c0d944a4330b69 (patch) | |
tree | a224d5a7538e070430aac3a8a8f9abb4b0cd9152 /include | |
parent | 133b822638ff01eb1e32e1917b197c40ed095ddd (diff) |
cfg80211: show interface type
This patch makes cfg80211 show the interface in the nl80211
information about a specific interface. API users are required
to keep the type updated (everything else is fairly complicated)
but you will get a warning if you fail to keep it updated.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 6 | ||||
-rw-r--r-- | include/net/wireless.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 9f40c4d417d7..0e85ec39b638 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -363,11 +363,13 @@ struct wiphy; | |||
363 | * wireless extensions but this is subject to reevaluation as soon as this | 363 | * wireless extensions but this is subject to reevaluation as soon as this |
364 | * code is used more widely and we have a first user without wext. | 364 | * code is used more widely and we have a first user without wext. |
365 | * | 365 | * |
366 | * @add_virtual_intf: create a new virtual interface with the given name | 366 | * @add_virtual_intf: create a new virtual interface with the given name, |
367 | * must set the struct wireless_dev's iftype. | ||
367 | * | 368 | * |
368 | * @del_virtual_intf: remove the virtual interface determined by ifindex. | 369 | * @del_virtual_intf: remove the virtual interface determined by ifindex. |
369 | * | 370 | * |
370 | * @change_virtual_intf: change type of virtual interface | 371 | * @change_virtual_intf: change type/configuration of virtual interface, |
372 | * keep the struct wireless_dev's iftype updated. | ||
371 | * | 373 | * |
372 | * @add_key: add a key with the given parameters. @mac_addr will be %NULL | 374 | * @add_key: add a key with the given parameters. @mac_addr will be %NULL |
373 | * when adding a group key. | 375 | * when adding a group key. |
diff --git a/include/net/wireless.h b/include/net/wireless.h index 0de7fde9f336..721efb363db7 100644 --- a/include/net/wireless.h +++ b/include/net/wireless.h | |||
@@ -223,9 +223,11 @@ struct wiphy { | |||
223 | * the netdev.) | 223 | * the netdev.) |
224 | * | 224 | * |
225 | * @wiphy: pointer to hardware description | 225 | * @wiphy: pointer to hardware description |
226 | * @iftype: interface type | ||
226 | */ | 227 | */ |
227 | struct wireless_dev { | 228 | struct wireless_dev { |
228 | struct wiphy *wiphy; | 229 | struct wiphy *wiphy; |
230 | enum nl80211_iftype iftype; | ||
229 | 231 | ||
230 | /* private to the generic wireless code */ | 232 | /* private to the generic wireless code */ |
231 | struct list_head list; | 233 | struct list_head list; |