Thread (45 messages) read the whole thread 45 messages, 4 authors, 2011-08-30

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

From: Jouni Malinen <hidden>
Date: 2011-08-30 14:30:44

On Tue, Aug 30, 2011 at 03:21:53PM +0530, Raja Mani wrote:
On Monday 29 August 2011 05:53 PM, Jouni Malinen wrote:
quoted
+	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help