OLD | NEW |
1 /* | 1 /* |
2 * Interface handling (except master interface) | 2 * Interface handling (except master interface) |
3 * | 3 * |
4 * Copyright 2002-2005, Instant802 Networks, Inc. | 4 * Copyright 2002-2005, Instant802 Networks, Inc. |
5 * Copyright 2005-2006, Devicescape Software, Inc. | 5 * Copyright 2005-2006, Devicescape Software, Inc. |
6 * Copyright (c) 2006 Jiri Benc <jbenc@suse.cz> | 6 * Copyright (c) 2006 Jiri Benc <jbenc@suse.cz> |
7 * Copyright 2008, Johannes Berg <johannes@sipsolutions.net> | 7 * Copyright 2008, Johannes Berg <johannes@sipsolutions.net> |
8 * | 8 * |
9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
10 * it under the terms of the GNU General Public License version 2 as | 10 * it under the terms of the GNU General Public License version 2 as |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 * right, so terminate the session. | 799 * right, so terminate the session. |
800 */ | 800 */ |
801 mutex_lock(&local->sta_mtx); | 801 mutex_lock(&local->sta_mtx); |
802 sta = sta_info_get_bss(sdata, mgmt->sa); | 802 sta = sta_info_get_bss(sdata, mgmt->sa); |
803 if (sta) { | 803 if (sta) { |
804 u16 tid = *ieee80211_get_qos_ctl(hdr) & | 804 u16 tid = *ieee80211_get_qos_ctl(hdr) & |
805 IEEE80211_QOS_CTL_TID_MASK; | 805 IEEE80211_QOS_CTL_TID_MASK; |
806 | 806 |
807 __ieee80211_stop_rx_ba_session( | 807 __ieee80211_stop_rx_ba_session( |
808 sta, tid, WLAN_BACK_RECIPIENT, | 808 sta, tid, WLAN_BACK_RECIPIENT, |
809 » » » » » WLAN_REASON_QSTA_REQUIRE_SETUP, | 809 » » » » » WLAN_REASON_QSTA_REQUIRE_SETUP); |
810 » » » » » true); | |
811 } | 810 } |
812 mutex_unlock(&local->sta_mtx); | 811 mutex_unlock(&local->sta_mtx); |
813 } else switch (sdata->vif.type) { | 812 } else switch (sdata->vif.type) { |
814 case NL80211_IFTYPE_STATION: | 813 case NL80211_IFTYPE_STATION: |
815 ieee80211_sta_rx_queued_mgmt(sdata, skb); | 814 ieee80211_sta_rx_queued_mgmt(sdata, skb); |
816 break; | 815 break; |
817 case NL80211_IFTYPE_ADHOC: | 816 case NL80211_IFTYPE_ADHOC: |
818 ieee80211_ibss_rx_queued_mgmt(sdata, skb); | 817 ieee80211_ibss_rx_queued_mgmt(sdata, skb); |
819 break; | 818 break; |
820 case NL80211_IFTYPE_MESH_POINT: | 819 case NL80211_IFTYPE_MESH_POINT: |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 | 1305 |
1307 int ieee80211_iface_init(void) | 1306 int ieee80211_iface_init(void) |
1308 { | 1307 { |
1309 return register_netdevice_notifier(&mac80211_netdev_notifier); | 1308 return register_netdevice_notifier(&mac80211_netdev_notifier); |
1310 } | 1309 } |
1311 | 1310 |
1312 void ieee80211_iface_exit(void) | 1311 void ieee80211_iface_exit(void) |
1313 { | 1312 { |
1314 unregister_netdevice_notifier(&mac80211_netdev_notifier); | 1313 unregister_netdevice_notifier(&mac80211_netdev_notifier); |
1315 } | 1314 } |
OLD | NEW |