Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2015 15:19:24 +0300
From:      "Andriy Voskoboinyk" <s3erios@gmail.com>
To:        "Matthew Grooms" <mgrooms@shrew.net>
Cc:        "Kevin Lo" <kevlo@freebsd.org>, "Adrian Chadd" <adrian.chadd@gmail.com>, freebsd-wireless@freebsd.org
Subject:   Re: urtwn and hostap
Message-ID:  <op.x5ba6mnciew4ia@localhost>
In-Reply-To: <55FFA1B9.8040005@shrew.net>
References:  <55F90187.10809@shrew.net> <55F906CB.9030007@shrew.net> <CAPp9Ormnjpwfk6s5UDei=EUBrmi_Ogapjx1nDTUUN=RTYWwVQA@mail.gmail.com> <CAJ-Vmo=BpM8gCztJm-kBVXY=oRe6vEqS7o5JeSxpUXve4d2chQ@mail.gmail.com> <55F996FD.5060804@shrew.net> <CAJ-VmomwQGDDacpHtSL6W4dXRLAy%2B86piFtHJSMnpZHtyd1A%2Bg@mail.gmail.com> <55FA6022.8090609@shrew.net> <20150917151249.GA68201@ns.kevlo.org> <CAJ-Vmo=gJbUXH4DHco2817PDQ7NJbANHEAAjAzy506wg_rpe6w@mail.gmail.com> <55FAEA82.3060602@shrew.net> <CAJ-Vmo=mcOx4HON8y94iegzjkYpJc34gEq3hOKhAZwZgnhgyvg@mail.gmail.com> <55FFA1B9.8040005@shrew.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Here is a new patch for the urtwn driver. I basically brought over the
> changes committed to NetBSD that enabled hostap mode by merging in what
> appeared to be the relevant differences. I also merged in two changes
> that looked like they would make monitor mode more useful.

> The only
> change I added was to revert the beacon config register back to it's
> original value when the adapter is switched back to station mode. There
> are no comments around that particular call in the NetBSD driver so I'm
> not sure if what I did was correct, it just seemed logical.

I think too.

> This patch doesn't manually generate a beacon frame using
> ieee80211_beacon_alloc so I assume that setting the MSR register using
> the appropriate value instructs the chip to handle that in hardware. I
> tested this on both my ESXi VM using USB passthru and my raspberry pi 2.
> Both appear to work as expected but the connection seemed less stable on
> the latter.

Can you check this with tcpdump(1) or dumpcap(1) on the sta side?
(I have seen configurations, where STA's were associated with an AP
without beaconing).

About patch:

> +		if (vap->iv_opmode ==IEEE80211_M_HOSTAP) {
> ...
> +			/* Allow Rx from any BSSID. */
> +			urtwn_write_4(sc, R92C_RCR,
> +			    urtwn_read_4(sc, R92C_RCR) &
> +			    ~(R92C_RCR_CBSSID_DATA | R92C_RCR_CBSSID_BCN));

Is there any reason for that? (can be useful in ad-hoc mode,
but I'm not sure about hostap).

> +			/* Set appropriate MSR bits */
> +			msr |= R92C_MSR_INFRA;

Probably, R92C_MSR_AP should be used here instead.

> Thanks again,
>
> -Matthew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.x5ba6mnciew4ia>