From owner-freebsd-wireless@freebsd.org Mon Jan 29 07:10:20 2018 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E09EFED9FBB for ; Mon, 29 Jan 2018 07:10:19 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DA8D8286D for ; Mon, 29 Jan 2018 07:10:19 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id q6so2337532ywg.3 for ; Sun, 28 Jan 2018 23:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kXf0r6+kZPedTKpRszRgWuaGvwlIqkyz0aw/3MAnJwU=; b=sfilCMvukhVHNqQZ74zaCXmSXAWgMfd0Nw6tDOQaAVXF9DqjDo5KG947tBEEIlsoYP KKs4/afUuLuY6CzCjouFIOSED9Mr00ALYegaX8jU7BtdFNAvxHAxhQ25MWWZG8MQciA/ vxfldrPdOisZpeuIdUss7SFkIDiU34yKx1wSfcjkNC1mbPZ5FbHQCEIKAY8Q8SQhSgmO IIEnKOkmkZyikoMVbfzhKYUpzwIEkKowAL9g0fGZhs5A9ewyk7+lb0/xkoe1/Sab5PU9 aSXlntCGrml4KVkjh6l+v9RKWmCZyHYSvaR0wKYQz26m3wkaSw4Ms7mgME6bZ5wmqq4L Sj3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kXf0r6+kZPedTKpRszRgWuaGvwlIqkyz0aw/3MAnJwU=; b=f0O2sbcjX00Ruj12M8emFjjxODafmIYeqxUjLrN6XyE6O0VDsDdJqvqRNbIPmWQXip jORfJ76hFOB+LxoIafYWidt1HPF4zNJAdxYgR1Ec8GHmdbqE4RNoFwTbWdinB6t9ZMGh lcXQhAYi7zDIiIebGRE1lx7j4FgaPM5L/7+m49gCFgGAX7JORddzgXastW5zhyLlA6bX kDFfp1vxHcStmDxaUDAOwTvfDdDCUxKd9e8wiO9JjgIIMAKFO6F0mb8A1/itPAmkYg4m COdiSJYNGDm+T7ktSqvt2+0TbaQ9boK+AQekHzUE7QHxhkIjpXA/RgrF1WVMIOLTaEpa nFmQ== X-Gm-Message-State: AKwxytfCeN5sUVevOR0PdgV/rdiJqqysevo2f18L/f0y+ZlkZOiKRqla 7qugB3FzXPEWkGV/Z3mBtl08jTIq/Dhvcw0wdHlrlp0C X-Google-Smtp-Source: AH8x224/5vNWAcsjtM05GRLq9YnrcXCzgME1ajT5OartKrbEAh3DoARu3yJDAGA0h5hp+46K3uu7JpP85A8UByva3D4= X-Received: by 10.129.26.2 with SMTP id a2mr17174727ywa.19.1517209818704; Sun, 28 Jan 2018 23:10:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.78.214 with HTTP; Sun, 28 Jan 2018 23:09:58 -0800 (PST) From: Farhan Khan Date: Mon, 29 Jan 2018 02:09:58 -0500 Message-ID: Subject: Last attempts at rtwn(4)'s rtl8188ee driver To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 07:10:20 -0000 Hi all, I have been trying to work on rtwn(4) for a little more than a year and a half with very limited success. The device does not receive any interrupts whatsoever and thus Rx fails. (Exception: it seems to receive a null interrupt once every hour when idle). When I run "tcpdump -ni wlan0 -y IEEE802_11_RADIO", FreeBSD will execute rtwn_set_promisc(), but fail to receive anything. The device works on Linux, so this is not a hardware issue. I have exhausted my options and have literally no what what the problem is. My code is located here: https://github.com/khanzf/rtl8188ee Does anyone have any ideas what the failure may be? Specifically: A) Is my initialization code even correct? If not, where is it wrong? B) Why is the device not receiving Rx interrupts? Unless anyone can determine *exactly* where the issue lays, I will be very regrettably abandoning this project that 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