From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751679AbdKYSMd (ORCPT ); Sat, 25 Nov 2017 13:12:33 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36452 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbdKYSMc (ORCPT ); Sat, 25 Nov 2017 13:12:32 -0500 X-Google-Smtp-Source: AGs4zMZgQJxP6YJvpRfBXbF/lLfKxbAzVHbgWjjLaMoSHJ8DUYICQRalNiD2j7qiAf3K/30vc4NbQw== Subject: Re: [PATCH 2/2] staging: rtl8188eu: Fix private WEXT IOCTL calls To: Dan Carpenter Cc: gregkh@linuxfoundation.org, himanshujha199640@gmail.com, goudapatilk@gmail.com, insafonov@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Johannes Berg References: <1511400546-10875-1-git-send-email-ishraq.i.ashraf@gmail.com> <1511571155-12101-1-git-send-email-ishraq.i.ashraf@gmail.com> <20171125044014.lfdwsrfgl4dz725d@mwanda> From: Ishraq Ibne Ashraf Message-ID: Date: Sat, 25 Nov 2017 19:12:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171125044014.lfdwsrfgl4dz725d@mwanda> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, What was broken was private/device specific IOCTL calls implemented by this driver. The standard IOCTL calls worked and the driver worked as it was in client mode. But in AP mode with hostapd (https://w1.fi/hostapd/) the rtl871xdrv driver of hostapd (which is required for using devices that use this driver in AP mode) invokes private/device specific IOCTL calls and in the existing driver they could only be invoked through the ndo_do_ioctl interface of the driver. Support for which was removed in the mentioned commit by Johannes Berg. Hence the driver stopped working in AP mode with hostapd using rtl871xdrv driver. The solution was to implement equivalent versions of the existing private/device specific IOCTLs which will be invoked by the iw_handler_def interface. Cheers, Ishraq On 11/25/2017 05:40 AM, Dan Carpenter wrote: > I added Johannes to the CC list again because this is sort of his > fault... To be honest, I'm a little bit puzzled. I would have thought > Johannes's change would have made some code unused and that we could > delete it now. I haven't looked at this.