Status codes and reason codes are separate things listed in distinct tables.
This debug message made me look at the wrong table and scratch my head.
-/* $OpenBSD: ieee80211_proto.c,v 1.87 2018/05/23 19:52:03 phessler Exp $ */
+/* $OpenBSD: ieee80211_proto.c,v 1.88 2018/08/06 14:28:13 stsp Exp $ */
/* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */
/*-
if (status != 0) {
if (ifp->if_flags & IFF_DEBUG)
printf("%s: open authentication failed "
- "(reason %d) for %s\n", ifp->if_xname,
+ "(status %d) for %s\n", ifp->if_xname,
status,
ether_sprintf((u_int8_t *)wh->i_addr3));
if (ni != ic->ic_bss)