From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arend van Spriel Date: Thu, 20 Jun 2013 15:17:03 +0200 Subject: [ath9k-devel] Supported Wi-Fi direct of Android? In-Reply-To: References: Message-ID: <51C300CF.20706@broadcom.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On 06/20/2013 02:44 PM, Check Zhao wrote: > Hi list, > > I want to enable concurrently the wlan0 and p2p0 interface with the usb > wifi dongle on PCs, > It is similar to the Wi-Fi direct of Android-4.2.2(Samsung Galaxy Nexus). > > I found out Galaxy Nexus Wi-Fi chip is Broadcom BCM4330, but I can't buy > a usb dongle used this chip, however I can buy TP-LINK TL-WN722N with > using ar9271( ath9k_htc driver). > > Now I want to know if ath9k_htc driver support to enable concurrently > the wlan0 and p2p0 interface, and how to support this functionality with > coding. > > Please help! From the code: static const struct ieee80211_iface_limit if_limits[] = { { .max = 2, .types = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_P2P_CLIENT) }, { .max = 2, .types = BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_P2P_GO) }, }; static const struct ieee80211_iface_combination if_comb = { .limits = if_limits, .n_limits = ARRAY_SIZE(if_limits), .max_interfaces = 2, .num_different_channels = 1, }; It has P2P support, but it is a mac80211 driver and it may need P2P_DEVICE support as well. Johannes? Regards, Arend > Some reference information: > > /http://readlist.com/lists/shmoo.com/hostap/3/15004.html/ > > ------------------------------------------------------------------------------------------------------------------ > /> To me it seem YanBo is working with a mac80211 driver and asking how to >> tell mac80211 it can support multiple (concurrent) interfaces. > > Same like for cfg80211, advertise interface combinations? And if you > advertise a combination with P2P_DEVICE then wpa_s (with these patches) > will pick it up and create one. > > johannes/ > ------------------------------------------------------------------------------------------------------------------- > > Best Regards, > > Chengyi >