Re: FreeBSD Wifi support for 802.11n Atheros AR9271 chip

2020-02-06 Thread Farhan Khan
try to port from either NetBSD or OpenBSD. > > On NetBSD I use re driver for Ethernet Realtek 811E/8168. > > Tom > > ___ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebs

Re: wireless coordination and who's working on what?

2019-01-08 Thread Farhan Khan
Hi all, I am working on another project which might be a few months, but would be interested in picking up a driver that is of lower priority. Ashish, I have two (maybe 3) of those cards from different vendors. I would not mind testing any code you produce. -- Farhan Khan PGP Fingerprint: B28D

rtwn(4) dropping frames, inconsistently receiving data

2018-08-18 Thread Farhan Khan
interrupt and DMA data? What driver-side configuration issues may be causing this? Ideas? Would hate to be stuck again for a few months :) Thank you, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE ___ freebsd-wirele

Re: Where do monitor mode and STA mode begin to differ?

2018-08-13 Thread Farhan Khan
monitor mode, or it's programmed to something like "all bits." > > > > -adrian > > > On Sat, 4 Aug 2018 at 15:32, Farhan Khan wrote: >> >> Hi all, >> >> Is there anything in net80211(4)'s initialization that is different >> between

Where do monitor mode and STA mode begin to differ?

2018-08-04 Thread Farhan Khan
ologize for the long email. -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE ___ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "

What is the ieee80211_scanner variable?

2018-07-28 Thread Farhan Khan
rd is not able to scan. Where is this value set? What is it? It seems to be defined within net80211(4) and not at the driver-level? Am I missing something? Please explain. Thanks, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE __

Re: Where is rtwn(4) scan failing

2018-07-22 Thread Farhan Khan
On Fri, Jul 6, 2018 at 5:35 PM, Farhan Khan wrote: > Hi Kevin, Andriy, et al, > > As you know, I am working on expanding rtwn(4) to include the > rtl8188ee driver. It appears that net80211(4) performs a scan before > associating to a BSS, so I am working on scanning. When I run &g

Where is rtwn(4) scan failing

2018-07-06 Thread Farhan Khan
be nice to be a little more efficient with Tx :) Again, any assistance is greatly appreciated. Thank you! -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE ___ freebsd-wireless@freebsd.org mailing list https

ifconfig scan returns no results - tracing rtwn(4)'s scanning execution flow

2018-07-03 Thread Farhan Khan
st 3 WiFi APs immediatley by the test laptop specifically for this test :) Thank you, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE ___ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman/

Getting started with association (sta) mode

2018-06-11 Thread Farhan Khan
examine those methods as implemented by rtwn, and see what I need to modify/update. Thanks! -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EEHi ___ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman

Ignoring R92C_C2H_EVT_DEBUG patch

2018-06-06 Thread Farhan Khan
R92C_C2H_EVT_TX_REPORT: r92c_ratectl_tx_complete(sc, (uint8_t *)buf, len); break; == Thanks -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE

Re: RTL8188EE monitor mode patch

2018-06-06 Thread Farhan Khan
On Wed, Jun 6, 2018 at 8:11 PM, Farhan Khan wrote: > Hi all, > > First ever patch submission, quite nervous. I have attached the diff > to this email. This is for the Realtek rtl8188ee PCI driver. Currently > only works in monitor mode and will receive wireless frames. I am ve

RTL8188EE monitor mode patch

2018-06-06 Thread Farhan Khan
basing this off of the Linux driver, and Realtek does not provide any documentation on how their driver works. My git repository is here: https://github.com/khanzf/freebsd Please let me know if there are any bugs or problems that need to be remediated. Thank you, -- Farhan Khan PGP Fingerprint: B28D

C2H interrupt causing kernel panics

2018-05-14 Thread Farhan Khan
It appears this is caused by a C2H interrupt function still running after the module is unloaded. If I bring the interface down, I have no problems. Am I missing something here? Is there a proper way to disable C2H interrupts? Thanks, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC

Handling C2H debug interrupt on rtwn(8)

2018-05-14 Thread Farhan Khan
! -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE ___ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-uns

rtwn(4) crash dump and kgdb output

2018-04-18 Thread Farhan Khan
rn/kern_clocksource.c:213 #10 0x810ad964 in timercb (et=0x81d07208 , arg=) at /usr/src/sys/kern/kern_clocksource.c:353 #11 0x810eb9f7 in lapic_handle_timer (frame=0xfe00259ca9a0) at /usr/src/sys/x86/x86/local_apic.c:1305 #12 0x80f5b6f0 in timerint_u () at /usr/src/

Starting Station mode for rtwn(4)'s rtl8188ee

2018-03-28 Thread Farhan Khan
does? What net80211 methods that reach into the driver should I target? I can eventually find out through tracing net80211, dtrace(1) and printfs, and probably will anyways, but it would save a lot of time if someone could give me some pointers (pun intended). Thank you, -- Farhan Khan PGP

Last attempts at rtwn(4)'s rtl8188ee driver

2018-01-28 Thread Farhan Khan
hat I have spent a considerable amount of personal time one. Thanks and my apologies to send this upsetting email. -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE ___ freebsd-wireless@freebsd.org mailing

Re: rtwn(4) extension rtl8188ee receiving constantly interrupts

2017-12-28 Thread Farhan Khan
Hi Andriy, I attempted to re-write all bits back, but the result is the same. Strange. Perhaps the initialization code is wrong somewhere? I will give it another review. -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE On Thu, Dec 28, 2017 at 4:28 AM, Andriy

Re: rtwn(4) extension rtl8188ee receiving constantly interrupts

2017-12-26 Thread Farhan Khan
ains. I am going to re-review the initialization code. Perhaps the issue lays there. Its a challenge, because the Linux and FreeBSD structure of the code is not 1-to-1. -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE On Sun, Dec 24, 2017 at 9:55 PM, A

rtwn card not delivering interrupts from beacon frames

2017-11-14 Thread Farhan Khan
Hi all, As discussed, I am working on the rtwn rtl8188ee driver. Per Adrian's advice, I am focusing on having the card reading beacon frames. I am running the following tcpdump line, which works on another machine with an rtwn card. # tcpdump -y IEEE802_11_RADIO -i wlan0 -e -s 256 type mgt

ieee80211 scan function starting point

2017-11-13 Thread Farhan Khan
Hi all, I am trying to get the "ifconfig wlan0 list scan" command to display local access points. I am fairly certain I have the "up" part working (loading firmware, turning it on) but the scan portion does not yet. I am trying to identify what functions I might have missed with dtrace, but

Identify cause of ieee80211_get_counter

2017-11-04 Thread Farhan Khan
way to identify what the cause of the error is? Thank you, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE ___ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubs

Re: C2H on rtwn not handled

2017-10-29 Thread Farhan Khan
). As always, thank you very much. On 10/29/2017 07:46 PM, Andriy Voskoboinyk wrote: Sun, 29 Oct 2017 08:34:21 +0200 було написано Farhan Khan <kha...@gmail.com>: Hi, You should not use polling for RTL8188EE - it was mainly used for RTL8192C* (since there is no documented way to get event

C2H on rtwn not handled

2017-10-29 Thread Farhan Khan
! -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE ___ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-uns

Re: Register Address Size Mismatch

2017-10-01 Thread Farhan Khan
> http://src.illumos.org/source/xref/freebsd-head/sys/dev/rtwn/if_rtwnreg.h#150. >>>> >>>> >>>> Notice how the second parameter 'reg' is a uint8_t. >>>> >>>> The rtwn_pci_write_4's addr is uint16_t, the rtwn_rf_prog's addr is a >>

Re: Register Address Size Mismatch

2017-10-01 Thread Farhan Khan
8_t. How would I reconcile this type mismatch? Additionally, the >> Linux version of this block of code has all register values as a >> uint32_t. It is not a matter of a cast, because some values definitely >> use more than 1 byte (ie 0xFFE). >> >> Suggestions on ho

Register Address Size Mismatch

2017-10-01 Thread Farhan Khan
). Suggestions on how to reconcile and resolve this issue? Thanks! Farhan Khan ___ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

rtwn0: timeout waiting for firmware readiness

2017-09-04 Thread Farhan Khan
is what I ported over from Linux. I have been switching back and forth, but it does not change the issue. (Pardon my dev-code, its quite messy) -- Farhan Khan PGP Fingerprint: 782F 342B 5B08 0D2F F4E8 82C3 FFA1 CAE1 6536 51CA ___ freebsd-wireless@freebsd.org

Re: Adding wifi source code

2017-09-01 Thread Farhan Khan
/rtl8188ee/sw.c#224 . Hope this helps. But yes, would love to work on AR9271! -- Farhan Khan PGP Fingerprint: 782F 342B 5B08 0D2F F4E8 82C3 FFA1 CAE1 6536 51CA On Fri, Sep 1, 2017 at 5:25 PM, Thomas Mueller <mueller6...@twc.com> wrote: > from Tecno Linux: > > > Hello, I have the

ieee80211_waitfor_parent hangs forever

2017-08-19 Thread Farhan Khan
.c#1406 I am not familiar with the source just yet, What does this function do? And, what is ic_parent_task? It appears that Andriy reported this same issue here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208860 but I did not see a resolution. Thanks! -- Farhan Khan PGP Fingerprint: 782F 3

Re: Why is rtwn module detaching?

2017-08-12 Thread Farhan Khan
ic->ic_nrunning is less than 0. Why is ic->ic_nrunning less than 0? Because something is calling ieee80211_stop_locked(). I have no direction on what the issue may be and have been just searching for an extended period now. Any assistance would be highly appreciated. Thank you, -- Farhan

Why is rtwn module detaching?

2017-08-05 Thread Farhan Khan
1 code to mark it as "off" or malfunctioning but I am not certain. Please advise. Thank you, -- Farhan Khan PGP Fingerprint: 782F 342B 5B08 0D2F F4E8 82C3 FFA1 CAE1 6536 51CA ___ freebsd-wireless@freebsd.org mailing list https://lists.free

Re: Trouble writing rtl8188ee driver

2017-03-18 Thread Farhan Khan
extend the rtl8188e code and add the PCI bits. This is my first time hacking the kernel and I hope to contribute back. Thanks again! -- Farhan Khan PGP Fingerprint: 782F 342B 5B08 0D2F F4E8 82C3 FFA1 CAE1 6536 51CA On Sat, Mar 18, 2017 at 7:28 PM, Andriy Voskoboinyk <s3er...@gmail.com>

Trouble writing rtl8188ee driver

2017-03-18 Thread Farhan Khan
is wrong or how to diagnose it. Can you please provide me some guidance? I have been stuck on this same issue for a little more than a month. Thank you! -- Farhan Khan PGP Fingerprint: 782F 342B 5B08 0D2F F4E8 82C3 FFA1 CAE1 6536 51CA ___ freebsd-wireless

RTL8188ee code

2017-01-08 Thread Farhan Khan
my code off of that. The probe is simple enough, but I do not know what to do with the attach function. Is there a general order of events? My code is here: https://www.gitlab.com/farhankhan/rtl8188ee/tree/master Thanks and I look forward to working on this. -- Farhan Khan