diff options
| author | John W. Linville <linville@tuxdriver.com> | 2013-05-29 14:51:50 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2013-05-29 14:51:50 -0400 |
| commit | 933faa43ab9c1545c53ea082a8e4e1d1859568aa (patch) | |
| tree | 933a7e52081af4cb32699587cb79173537f6c638 /net/mac80211/debugfs_netdev.c | |
| parent | 531efffc3e3ff52d732c8fa6f32e084e9c447612 (diff) | |
| parent | 6abb9cb99f33b20c2f32f18a3ae9cc7543e46edb (diff) | |
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Diffstat (limited to 'net/mac80211/debugfs_netdev.c')
| -rw-r--r-- | net/mac80211/debugfs_netdev.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index 14abcf44f974..cafe614ef93d 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
| @@ -228,9 +228,9 @@ static int ieee80211_set_smps(struct ieee80211_sub_if_data *sdata, | |||
| 228 | if (sdata->vif.type != NL80211_IFTYPE_STATION) | 228 | if (sdata->vif.type != NL80211_IFTYPE_STATION) |
| 229 | return -EOPNOTSUPP; | 229 | return -EOPNOTSUPP; |
| 230 | 230 | ||
| 231 | mutex_lock(&sdata->u.mgd.mtx); | 231 | sdata_lock(sdata); |
| 232 | err = __ieee80211_request_smps(sdata, smps_mode); | 232 | err = __ieee80211_request_smps(sdata, smps_mode); |
| 233 | mutex_unlock(&sdata->u.mgd.mtx); | 233 | sdata_unlock(sdata); |
| 234 | 234 | ||
| 235 | return err; | 235 | return err; |
| 236 | } | 236 | } |
| @@ -313,16 +313,16 @@ static ssize_t ieee80211_if_parse_tkip_mic_test( | |||
| 313 | case NL80211_IFTYPE_STATION: | 313 | case NL80211_IFTYPE_STATION: |
| 314 | fc |= cpu_to_le16(IEEE80211_FCTL_TODS); | 314 | fc |= cpu_to_le16(IEEE80211_FCTL_TODS); |
| 315 | /* BSSID SA DA */ | 315 | /* BSSID SA DA */ |
| 316 | mutex_lock(&sdata->u.mgd.mtx); | 316 | sdata_lock(sdata); |
| 317 | if (!sdata->u.mgd.associated) { | 317 | if (!sdata->u.mgd.associated) { |
| 318 | mutex_unlock(&sdata->u.mgd.mtx); | 318 | sdata_unlock(sdata); |
| 319 | dev_kfree_skb(skb); | 319 | dev_kfree_skb(skb); |
| 320 | return -ENOTCONN; | 320 | return -ENOTCONN; |
| 321 | } | 321 | } |
| 322 | memcpy(hdr->addr1, sdata->u.mgd.associated->bssid, ETH_ALEN); | 322 | memcpy(hdr->addr1, sdata->u.mgd.associated->bssid, ETH_ALEN); |
| 323 | memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); | 323 | memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN); |
| 324 | memcpy(hdr->addr3, addr, ETH_ALEN); | 324 | memcpy(hdr->addr3, addr, ETH_ALEN); |
| 325 | mutex_unlock(&sdata->u.mgd.mtx); | 325 | sdata_unlock(sdata); |
| 326 | break; | 326 | break; |
| 327 | default: | 327 | default: |
| 328 | dev_kfree_skb(skb); | 328 | dev_kfree_skb(skb); |
| @@ -471,6 +471,8 @@ __IEEE80211_IF_FILE_W(tsf); | |||
| 471 | IEEE80211_IF_FILE(peer, u.wds.remote_addr, MAC); | 471 | IEEE80211_IF_FILE(peer, u.wds.remote_addr, MAC); |
| 472 | 472 | ||
| 473 | #ifdef CONFIG_MAC80211_MESH | 473 | #ifdef CONFIG_MAC80211_MESH |
| 474 | IEEE80211_IF_FILE(estab_plinks, u.mesh.estab_plinks, ATOMIC); | ||
| 475 | |||
| 474 | /* Mesh stats attributes */ | 476 | /* Mesh stats attributes */ |
| 475 | IEEE80211_IF_FILE(fwded_mcast, u.mesh.mshstats.fwded_mcast, DEC); | 477 | IEEE80211_IF_FILE(fwded_mcast, u.mesh.mshstats.fwded_mcast, DEC); |
| 476 | IEEE80211_IF_FILE(fwded_unicast, u.mesh.mshstats.fwded_unicast, DEC); | 478 | IEEE80211_IF_FILE(fwded_unicast, u.mesh.mshstats.fwded_unicast, DEC); |
| @@ -480,7 +482,6 @@ IEEE80211_IF_FILE(dropped_frames_congestion, | |||
| 480 | u.mesh.mshstats.dropped_frames_congestion, DEC); | 482 | u.mesh.mshstats.dropped_frames_congestion, DEC); |
| 481 | IEEE80211_IF_FILE(dropped_frames_no_route, | 483 | IEEE80211_IF_FILE(dropped_frames_no_route, |
| 482 | u.mesh.mshstats.dropped_frames_no_route, DEC); | 484 | u.mesh.mshstats.dropped_frames_no_route, DEC); |
| 483 | IEEE80211_IF_FILE(estab_plinks, u.mesh.estab_plinks, ATOMIC); | ||
| 484 | 485 | ||
| 485 | /* Mesh parameters */ | 486 | /* Mesh parameters */ |
| 486 | IEEE80211_IF_FILE(dot11MeshMaxRetries, | 487 | IEEE80211_IF_FILE(dot11MeshMaxRetries, |
| @@ -583,6 +584,7 @@ static void add_wds_files(struct ieee80211_sub_if_data *sdata) | |||
| 583 | static void add_mesh_files(struct ieee80211_sub_if_data *sdata) | 584 | static void add_mesh_files(struct ieee80211_sub_if_data *sdata) |
| 584 | { | 585 | { |
| 585 | DEBUGFS_ADD_MODE(tsf, 0600); | 586 | DEBUGFS_ADD_MODE(tsf, 0600); |
| 587 | DEBUGFS_ADD_MODE(estab_plinks, 0400); | ||
| 586 | } | 588 | } |
| 587 | 589 | ||
| 588 | static void add_mesh_stats(struct ieee80211_sub_if_data *sdata) | 590 | static void add_mesh_stats(struct ieee80211_sub_if_data *sdata) |
| @@ -598,7 +600,6 @@ static void add_mesh_stats(struct ieee80211_sub_if_data *sdata) | |||
| 598 | MESHSTATS_ADD(dropped_frames_ttl); | 600 | MESHSTATS_ADD(dropped_frames_ttl); |
| 599 | MESHSTATS_ADD(dropped_frames_no_route); | 601 | MESHSTATS_ADD(dropped_frames_no_route); |
| 600 | MESHSTATS_ADD(dropped_frames_congestion); | 602 | MESHSTATS_ADD(dropped_frames_congestion); |
| 601 | MESHSTATS_ADD(estab_plinks); | ||
| 602 | #undef MESHSTATS_ADD | 603 | #undef MESHSTATS_ADD |
| 603 | } | 604 | } |
| 604 | 605 | ||
