summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2009-09-08 13:16:55 +0000
committerphk <phk@FreeBSD.org>2009-09-08 13:16:55 +0000
commit2314521104388ada19392a3b2cdaca4ba6f82243 (patch)
tree861cbfaa866bcf3864607e709a7f079f8e0b8b88 /sys/net80211
parent3f6c5f153b139d0086f063e076f19f4f76da1927 (diff)
downloadFreeBSD-src-2314521104388ada19392a3b2cdaca4ba6f82243.zip
FreeBSD-src-2314521104388ada19392a3b2cdaca4ba6f82243.tar.gz
Add necessary include.
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_action.c2
-rw-r--r--sys/net80211/ieee80211_proto.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_action.c b/sys/net80211/ieee80211_action.c
index 5371f6e..8c11471 100644
--- a/sys/net80211/ieee80211_action.c
+++ b/sys/net80211/ieee80211_action.c
@@ -105,7 +105,7 @@ ieee80211_send_action_register(int cat, int act, ieee80211_send_action_func *f)
meshlm_send_action[act] = f;
return 0;
case IEEE80211_ACTION_CAT_MESHPATH:
- if (act > N(hwmp_send_action))
+ if (act >= N(hwmp_send_action))
break;
hwmp_send_action[act] = f;
return 0;
diff --git a/sys/net80211/ieee80211_proto.h b/sys/net80211/ieee80211_proto.h
index 9bfbc61..b7c2c43 100644
--- a/sys/net80211/ieee80211_proto.h
+++ b/sys/net80211/ieee80211_proto.h
@@ -315,7 +315,7 @@ struct ieee80211_beacon_offsets {
uint8_t *bo_ath; /* start of ATH parameters */
uint8_t *bo_appie; /* start of AppIE element */
uint16_t bo_appie_len; /* AppIE length in bytes */
- uint16_t bo_csa_trailer_len;;
+ uint16_t bo_csa_trailer_len;
uint8_t *bo_csa; /* start of CSA element */
uint8_t *bo_spare[4];
};
OpenPOWER on IntegriCloud