Search Linux Wireless

Re: [PATCH 08/20] ath6kl: Request P2P capabilities during target init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 30, 2011 at 03:21:53PM +0530, Raja Mani wrote:
> On Monday 29 August 2011 05:53 PM, Jouni Malinen wrote:
> >+	ret = ath6kl_wmi_info_req_cmd(ar->wmi, P2P_FLAG_CAPABILITIES_REQ |
> >+				      P2P_FLAG_MACADDR_REQ |
> >+				      P2P_FLAG_HMODEL_REQ);
> >+	if (ret) {
> >+		printk(KERN_DEBUG "ath6l: Failed to request P2P capabilities "
> >+		       "(%d) - assuming P2P not supported\n", ret);
> 
> Is it possible to use ath6kl_dbg() instead of printk here ?

Sure.

> Should it be ath6kl_err() ?
> 
> Another question is , Don't you have to assign error code (may be
> -EIO) to 'status' variable in case of error ? not sure whether error
> code assignment needed here or not..

No, this is not a fatal error. The driver will just run without P2P
support if the firmware does not support the new P2P commands. I'm not
yet sure what will be the exact mechanism for doing this, i.e., this may
be done either based on the firmware version or the result of this
command. Though, it should be noted that the target returns the
capabilities with a separate event message, so we would need to block
somehow during hardware init to have the information available for
cfg80211 registration. Anyway, the patch to actually start advertising
support for P2P is not included in the patch series.

-- 
Jouni Malinen                                            PGP id EFC895FA
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux