ieee80211_action.c (196969) | ieee80211_action.c (196970) |
---|---|
1/*- 2 * Copyright (c) 2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> 27#ifdef __FreeBSD__ | 1/*- 2 * Copyright (c) 2009 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> 27#ifdef __FreeBSD__ |
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_action.c 196969 2009-09-08 13:16:55Z phk $"); | 28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_action.c 196970 2009-09-08 13:19:05Z phk $"); |
29#endif 30 31/* 32 * IEEE 802.11 send/recv action frame support. 33 */ 34 35#include "opt_inet.h" 36#include "opt_wlan.h" --- 63 unchanged lines hidden (view full) --- 100 meshpl_send_action[act] = f; 101 return 0; 102 case IEEE80211_ACTION_CAT_MESHLMETRIC: 103 if (act >= N(meshlm_send_action)) 104 break; 105 meshlm_send_action[act] = f; 106 return 0; 107 case IEEE80211_ACTION_CAT_MESHPATH: | 29#endif 30 31/* 32 * IEEE 802.11 send/recv action frame support. 33 */ 34 35#include "opt_inet.h" 36#include "opt_wlan.h" --- 63 unchanged lines hidden (view full) --- 100 meshpl_send_action[act] = f; 101 return 0; 102 case IEEE80211_ACTION_CAT_MESHLMETRIC: 103 if (act >= N(meshlm_send_action)) 104 break; 105 meshlm_send_action[act] = f; 106 return 0; 107 case IEEE80211_ACTION_CAT_MESHPATH: |
108 if (act >= N(hwmp_send_action)) | 108 if (act > N(hwmp_send_action)) |
109 break; 110 hwmp_send_action[act] = f; 111 return 0; 112 case IEEE80211_ACTION_CAT_VENDOR: 113 if (act >= N(vendor_send_action)) 114 break; 115 vendor_send_action[act] = f; 116 return 0; --- 163 unchanged lines hidden --- | 109 break; 110 hwmp_send_action[act] = f; 111 return 0; 112 case IEEE80211_ACTION_CAT_VENDOR: 113 if (act >= N(vendor_send_action)) 114 break; 115 vendor_send_action[act] = f; 116 return 0; --- 163 unchanged lines hidden --- |