Return-path: Received: from mail-wg0-f50.google.com ([74.125.82.50]:34187 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754019AbbFOLqk (ORCPT ); Mon, 15 Jun 2015 07:46:40 -0400 Received: by wgv5 with SMTP id 5so66559392wgv.1 for ; Mon, 15 Jun 2015 04:46:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1433913034-17801-1-git-send-email-janusz.dziedzic@tieto.com> <21886.43539.833126.629494@gargle.gargle.HOWL> Date: Mon, 15 Jun 2015 13:46:39 +0200 Message-ID: (sfid-20150615_134644_247355_62000019) Subject: Re: [RFC] ath9k: advertise p2p dev support when chanctx From: Janusz Dziedzic To: Sujith Manoharan Cc: linux-wireless@vger.kernel.org, ath9k-devel@venema.h4ckr.net, Felix Fietkau Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 15 June 2015 at 13:38, Janusz Dziedzic wrote: > On 15 June 2015 at 12:33, Sujith Manoharan wrote: >> Janusz Dziedzic wrote: >>> Add p2p dev support when ath9k loaded with >>> use_chanctx=1. This will fix problem, when first >>> interface is an AP and next we would like to run >>> p2p_find. Before p2p scan failed. >>> >>> Signed-off-by: Janusz Dziedzic >>> --- >>> @Felix, Sujith please review. I am not sure if didn't miss some >>> case for NL80211_IFTYPE_P2P_DEVICE (special handling required?). >> >> At least the callbacks for adding/removing interfaces need >> to be handled ? >> > Strange, but I didn't hit any problem yet with my simple patch. > >> But, can you describe the sequence of commands used that >> resulted in this issue ? >> > 1. load ath9k with use_chanctx=1 > 2. run wpa_supplicant using wlan0 > 3. connect wlan0 to AP 3. setup AP using wlan0 > 4. run p2p_find form wpa_cli > 5. scan will failed with Operation not supported (even I will > force-ap-scan, while chanctx version using hw_scan callback ...) > 6. p2p_find will fail > > BR > Janusz