Index: if_ndis.c =================================================================== RCS file: /home/ncvs/src/sys/dev/if_ndis/if_ndis.c,v retrieving revision 1.123 diff -u -p -r1.123 if_ndis.c --- if_ndis.c 12 Jul 2007 02:54:05 -0000 1.123 +++ if_ndis.c 15 Jul 2007 18:46:29 -0000 @@ -89,6 +89,7 @@ __FBSDID("$FreeBSD: src/sys/dev/if_ndis/ #include #include +#define NDIS_DEBUG #ifdef NDIS_DEBUG #define DPRINTF(x) printf x #else @@ -752,11 +753,16 @@ ndis_attach(dev) setbit(&bands, IEEE80211_MODE_11G); break; default: + DPRINTF(("Unknown nettype %d\n", + ntl->ntl_type[i])); break; } } free(ntl, M_DEVBUF); nonettypes: + /* Default to 11b channel set if the card did not supply any */ + if (bands == 0) + setbit(ic->ic_modecaps, IEEE80211_MODE_11B); len = sizeof(rates); bzero((char *)&rates, len); r = ndis_get_info(sc, OID_802_11_SUPPORTED_RATES,