aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs_netdev.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-09-10 18:01:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-15 16:48:23 -0400
commit05c914fe330fa8e1cc67870dc0d3809dfd96c107 (patch)
treedf53bcab47335f3361c09478d6b1447b7d298536 /net/mac80211/debugfs_netdev.c
parent96dd22ac06b0dbfb069fdf530c72046a941e9694 (diff)
mac80211: use nl80211 interface types
There's really no reason for mac80211 to be using its own interface type defines. Use the nl80211 types and simplify the configuration code a bit: there's no need to translate them any more now. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/debugfs_netdev.c')
-rw-r--r--net/mac80211/debugfs_netdev.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c
index 0fa7681a3d20..1b33cad24abc 100644
--- a/net/mac80211/debugfs_netdev.c
+++ b/net/mac80211/debugfs_netdev.c
@@ -345,26 +345,26 @@ static void add_files(struct ieee80211_sub_if_data *sdata)
345 return; 345 return;
346 346
347 switch (sdata->vif.type) { 347 switch (sdata->vif.type) {
348 case IEEE80211_IF_TYPE_MESH_POINT: 348 case NL80211_IFTYPE_MESH_POINT:
349#ifdef CONFIG_MAC80211_MESH 349#ifdef CONFIG_MAC80211_MESH
350 add_mesh_stats(sdata); 350 add_mesh_stats(sdata);
351 add_mesh_config(sdata); 351 add_mesh_config(sdata);
352#endif 352#endif
353 break; 353 break;
354 case IEEE80211_IF_TYPE_STA: 354 case NL80211_IFTYPE_STATION:
355 case IEEE80211_IF_TYPE_IBSS: 355 case NL80211_IFTYPE_ADHOC:
356 add_sta_files(sdata); 356 add_sta_files(sdata);
357 break; 357 break;
358 case IEEE80211_IF_TYPE_AP: 358 case NL80211_IFTYPE_AP:
359 add_ap_files(sdata); 359 add_ap_files(sdata);
360 break; 360 break;
361 case IEEE80211_IF_TYPE_WDS: 361 case NL80211_IFTYPE_WDS:
362 add_wds_files(sdata); 362 add_wds_files(sdata);
363 break; 363 break;
364 case IEEE80211_IF_TYPE_MNTR: 364 case NL80211_IFTYPE_MONITOR:
365 add_monitor_files(sdata); 365 add_monitor_files(sdata);
366 break; 366 break;
367 case IEEE80211_IF_TYPE_VLAN: 367 case NL80211_IFTYPE_AP_VLAN:
368 add_vlan_files(sdata); 368 add_vlan_files(sdata);
369 break; 369 break;
370 default: 370 default:
@@ -482,26 +482,26 @@ static void del_files(struct ieee80211_sub_if_data *sdata)
482 return; 482 return;
483 483
484 switch (sdata->vif.type) { 484 switch (sdata->vif.type) {
485 case IEEE80211_IF_TYPE_MESH_POINT: 485 case NL80211_IFTYPE_MESH_POINT:
486#ifdef CONFIG_MAC80211_MESH 486#ifdef CONFIG_MAC80211_MESH
487 del_mesh_stats(sdata); 487 del_mesh_stats(sdata);
488 del_mesh_config(sdata); 488 del_mesh_config(sdata);
489#endif 489#endif
490 break; 490 break;
491 case IEEE80211_IF_TYPE_STA: 491 case NL80211_IFTYPE_STATION:
492 case IEEE80211_IF_TYPE_IBSS: 492 case NL80211_IFTYPE_ADHOC:
493 del_sta_files(sdata); 493 del_sta_files(sdata);
494 break; 494 break;
495 case IEEE80211_IF_TYPE_AP: 495 case NL80211_IFTYPE_AP:
496 del_ap_files(sdata); 496 del_ap_files(sdata);
497 break; 497 break;
498 case IEEE80211_IF_TYPE_WDS: 498 case NL80211_IFTYPE_WDS:
499 del_wds_files(sdata); 499 del_wds_files(sdata);
500 break; 500 break;
501 case IEEE80211_IF_TYPE_MNTR: 501 case NL80211_IFTYPE_MONITOR:
502 del_monitor_files(sdata); 502 del_monitor_files(sdata);
503 break; 503 break;
504 case IEEE80211_IF_TYPE_VLAN: 504 case NL80211_IFTYPE_AP_VLAN:
505 del_vlan_files(sdata); 505 del_vlan_files(sdata);
506 break; 506 break;
507 default: 507 default: