Date: Sun, 1 Nov 2009 10:09:18 +0100 From: Paul B Mahol <onemda@gmail.com> To: Coleman Kane <cokane@freebsd.org> Cc: net@freebsd.org Subject: Re: if_ndis patch Message-ID: <3a142e750911010109t7d1c9148t264e168a3a2bd47a@mail.gmail.com> In-Reply-To: <1257014422.2113.6.camel@localhost> References: <3a142e750910300852n276d009bsefea73b3ee4db176@mail.gmail.com> <1257014422.2113.6.camel@localhost>
index | next in thread | previous in thread | raw e-mail
On 10/31/09, Coleman Kane <cokane@freebsd.org> wrote:
> Paul,
>
> Did you get to send this to sam@, etc ?
Negative, now let @net know about it too.
> On Fri, 2009-10-30 at 16:52 +0100, Paul B Mahol wrote:
>> Hi,
>>
>> There is no point to do scanning how it is currently done:
>>
>> Index: if_ndis.c
>> ===================================================================
>> --- if_ndis.c (revision 198675)
>> +++ if_ndis.c (working copy)
>> @@ -3398,11 +3398,8 @@
>> struct ifnet *ifp = ic->ic_ifp;
>> struct ndis_softc *sc = ifp->if_softc;
>> struct ieee80211vap *vap;
>> - struct ieee80211_scan_state *ss;
>> - ndis_80211_ssid ssid;
>> int error, len;
>>
>> - ss = ic->ic_scan;
>> vap = TAILQ_FIRST(&ic->ic_vaps);
>>
>> if (!NDIS_INITIALIZED(sc)) {
>> @@ -3411,20 +3408,6 @@
>> return;
>> }
>>
>> - len = sizeof(ssid);
>> - bzero((char *)&ssid, len);
>> - if (ss->ss_nssid == 0)
>> - ssid.ns_ssidlen = 1;
>> - else {
>> - /* Perform a directed scan */
>> - ssid.ns_ssidlen = ss->ss_ssid[0].len;
>> - bcopy(ss->ss_ssid[0].ssid, ssid.ns_ssid, ssid.ns_ssidlen);
>> - }
>> -
>> - error = ndis_set_info(sc, OID_802_11_SSID, &ssid, &len);
>> - if (error)
>> - DPRINTF(("%s: set ESSID failed\n", __func__));
>> -
>> len = 0;
>> error = ndis_set_info(sc, OID_802_11_BSSID_LIST_SCAN,
>> NULL, &len);
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a142e750911010109t7d1c9148t264e168a3a2bd47a>
