Date: Wed, 9 Sep 2015 01:24:45 +0200 From: Idwer Vollering <vidwer@gmail.com> To: freebsd-wireless@freebsd.org Subject: RFC: remove NDIS code from rsu Message-ID: <CAPp9OrkzK456mmV-TbJzx-vRjaD1HAc3NeKXXNR2s_5fWsZgrw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
The driver is able to bring up a connection on linux and openbsd just fine. I would start with this, then fix the structs. This could use another pair of eyes. Partial draft (yes, it builds): Index: sys/dev/usb/wlan/if_rsu.c =================================================================== --- sys/dev/usb/wlan/if_rsu.c (revision 287538) +++ sys/dev/usb/wlan/if_rsu.c (working copy) @@ -1066,11 +1066,11 @@ if (ic->ic_curmode == IEEE80211_MODE_11B) bss->networktype = htole32(NDIS802_11DS); else - bss->networktype = htole32(NDIS802_11OFDM24); + bss->networktype = IEEE80211_MODE_11G; bss->config.len = htole32(sizeof(bss->config)); bss->config.bintval = htole32(ni->ni_intval); bss->config.dsconfig = htole32(ieee80211_chan2ieee(ic, ni->ni_chan)); - bss->inframode = htole32(NDIS802_11INFRASTRUCTURE); + bss->inframode = IEEE80211_M_STA; memcpy(bss->supprates, ni->ni_rates.rs_rates, ni->ni_rates.rs_nrates); /* Write the fixed fields of the beacon frame. */ Index: sys/dev/usb/wlan/if_rsureg.h =================================================================== --- sys/dev/usb/wlan/if_rsureg.h (revision 287538) +++ sys/dev/usb/wlan/if_rsureg.h (working copy) @@ -414,19 +414,11 @@ uint32_t privacy; int32_t rssi; uint32_t networktype; -#define NDIS802_11FH 0 #define NDIS802_11DS 1 -#define NDIS802_11OFDM5 2 -#define NDIS802_11OFDM24 3 -#define NDIS802_11AUTOMODE 4 struct ndis_802_11_configuration config; uint32_t inframode; -#define NDIS802_11IBSS 0 -#define NDIS802_11INFRASTRUCTURE 1 #define NDIS802_11AUTOUNKNOWN 2 -#define NDIS802_11MONITOR 3 -#define NDIS802_11APMODE 4 uint8_t supprates[16]; uint32_t ieslen;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPp9OrkzK456mmV-TbJzx-vRjaD1HAc3NeKXXNR2s_5fWsZgrw>