diff options
Diffstat (limited to 'net/mac80211/util.c')
| -rw-r--r-- | net/mac80211/util.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index bd40b11d5ab9..737f4267c335 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
| @@ -474,16 +474,10 @@ void ieee80211_iterate_active_interfaces( | |||
| 474 | 474 | ||
| 475 | list_for_each_entry(sdata, &local->interfaces, list) { | 475 | list_for_each_entry(sdata, &local->interfaces, list) { |
| 476 | switch (sdata->vif.type) { | 476 | switch (sdata->vif.type) { |
| 477 | case NUM_NL80211_IFTYPES: | ||
| 478 | case NL80211_IFTYPE_UNSPECIFIED: | ||
| 479 | case NL80211_IFTYPE_MONITOR: | 477 | case NL80211_IFTYPE_MONITOR: |
| 480 | case NL80211_IFTYPE_AP_VLAN: | 478 | case NL80211_IFTYPE_AP_VLAN: |
| 481 | continue; | 479 | continue; |
| 482 | case NL80211_IFTYPE_AP: | 480 | default: |
| 483 | case NL80211_IFTYPE_STATION: | ||
| 484 | case NL80211_IFTYPE_ADHOC: | ||
| 485 | case NL80211_IFTYPE_WDS: | ||
| 486 | case NL80211_IFTYPE_MESH_POINT: | ||
| 487 | break; | 481 | break; |
| 488 | } | 482 | } |
| 489 | if (ieee80211_sdata_running(sdata)) | 483 | if (ieee80211_sdata_running(sdata)) |
| @@ -508,16 +502,10 @@ void ieee80211_iterate_active_interfaces_atomic( | |||
| 508 | 502 | ||
| 509 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { | 503 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { |
| 510 | switch (sdata->vif.type) { | 504 | switch (sdata->vif.type) { |
| 511 | case NUM_NL80211_IFTYPES: | ||
| 512 | case NL80211_IFTYPE_UNSPECIFIED: | ||
| 513 | case NL80211_IFTYPE_MONITOR: | 505 | case NL80211_IFTYPE_MONITOR: |
| 514 | case NL80211_IFTYPE_AP_VLAN: | 506 | case NL80211_IFTYPE_AP_VLAN: |
| 515 | continue; | 507 | continue; |
| 516 | case NL80211_IFTYPE_AP: | 508 | default: |
| 517 | case NL80211_IFTYPE_STATION: | ||
| 518 | case NL80211_IFTYPE_ADHOC: | ||
| 519 | case NL80211_IFTYPE_WDS: | ||
| 520 | case NL80211_IFTYPE_MESH_POINT: | ||
| 521 | break; | 509 | break; |
| 522 | } | 510 | } |
| 523 | if (ieee80211_sdata_running(sdata)) | 511 | if (ieee80211_sdata_running(sdata)) |
| @@ -1193,6 +1181,8 @@ int ieee80211_reconfig(struct ieee80211_local *local) | |||
| 1193 | break; | 1181 | break; |
| 1194 | case NL80211_IFTYPE_UNSPECIFIED: | 1182 | case NL80211_IFTYPE_UNSPECIFIED: |
| 1195 | case NUM_NL80211_IFTYPES: | 1183 | case NUM_NL80211_IFTYPES: |
| 1184 | case NL80211_IFTYPE_P2P_CLIENT: | ||
| 1185 | case NL80211_IFTYPE_P2P_GO: | ||
| 1196 | WARN_ON(1); | 1186 | WARN_ON(1); |
| 1197 | break; | 1187 | break; |
| 1198 | } | 1188 | } |
| @@ -1296,9 +1286,9 @@ void ieee80211_recalc_smps(struct ieee80211_local *local, | |||
| 1296 | int count = 0; | 1286 | int count = 0; |
| 1297 | 1287 | ||
| 1298 | if (forsdata) | 1288 | if (forsdata) |
| 1299 | WARN_ON(!mutex_is_locked(&forsdata->u.mgd.mtx)); | 1289 | lockdep_assert_held(&forsdata->u.mgd.mtx); |
| 1300 | 1290 | ||
| 1301 | WARN_ON(!mutex_is_locked(&local->iflist_mtx)); | 1291 | lockdep_assert_held(&local->iflist_mtx); |
| 1302 | 1292 | ||
| 1303 | /* | 1293 | /* |
| 1304 | * This function could be improved to handle multiple | 1294 | * This function could be improved to handle multiple |
