<div>> Cleaned up version below. Though, I would like to see an example<br>> implementation for this in driver_nl80211.c, i.e., we need to get this<br>> functionality reviewed on the linux-wireless mailing list and included<br>
> in the upstream kernel.</div><div>Thanks again!!. I still haven't worked on this front. This is a much</div><div>required patch for single channel concurrency case.</div><div><br></div><div><br></div>- Jithu<br clear="all">
<font color="#666666"><b><br></b></font>
<br><br><div class="gmail_quote">On Mon, Apr 9, 2012 at 12:06 AM, Jouni Malinen <span dir="ltr"><<a href="mailto:j@w1.fi">j@w1.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Mar 06, 2012 at 10:34:12AM +0530, Jithu Jance wrote:<br>
> Single channel concurrency patch [3/4]<br>
><br>
> Hooks for implementing GO/AP channel switch. To be expanded later.<br>
<br>
</div>Cleaned up version below. Though, I would like to see an example<br>
implementation for this in driver_nl80211.c, i.e., we need to get this<br>
functionality reviewed on the linux-wireless mailing list and included<br>
in the upstream kernel.<br>
<br>
<br>
[PATCH 2/3] P2P: Add driver op for requesting GO/AP channel switch<br>
<div class="im"><br>
Signed-hostap: Jithu Jance <<a href="mailto:jithu@broadcom.com">jithu@broadcom.com</a>><br>
---<br>
</div> src/drivers/driver.h | 12 ++++++++++++<br>
wpa_supplicant/driver_i.h | 8 ++++++++<br>
2 files changed, 20 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/src/drivers/driver.h b/src/drivers/driver.h<br>
index 329f89a..7ff1b3d 100644<br>
--- a/src/drivers/driver.h<br>
+++ b/src/drivers/driver.h<br>
@@ -2535,6 +2535,18 @@ struct wpa_driver_ops {<br>
<div class="im"> * conditions.<br>
*/<br>
int (*radio_disable)(void *priv, int disabled);<br>
+<br>
+ /**<br>
</div>+ * switch_channel - Announce channel switch and migrate the GO to the<br>
+ * given frequency<br>
<div class="im">+ * @priv: Private driver interface data<br>
</div>+ * @freq: Frequency in MHz<br>
<div class="im">+ * Returns: 0 on success, -1 on failure<br>
+ *<br>
+ * This function is used to move the GO to the legacy STA channel to<br>
</div>+ * avoid frequency conflict in single channel concurrency.<br>
<div class="im">+ */<br>
+ int (*switch_channel)(void *priv, unsigned int freq);<br>
</div> };<br>
<br>
<br>
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h<br>
index e1e921d..2ab455b 100644<br>
--- a/wpa_supplicant/driver_i.h<br>
+++ b/wpa_supplicant/driver_i.h<br>
@@ -672,4 +672,12 @@ static inline int wpa_drv_radio_disable(struct wpa_supplicant *wpa_s,<br>
<div class="im"> return wpa_s->driver->radio_disable(wpa_s->drv_priv, disabled);<br>
}<br>
<br>
+static inline int wpa_drv_switch_channel(struct wpa_supplicant *wpa_s,<br>
</div>+ unsigned int freq)<br>
<div class="im HOEnZb">+{<br>
+ if (!wpa_s->driver->switch_channel)<br>
+ return -1;<br>
+ return wpa_s->driver->switch_channel(wpa_s->drv_priv, freq);<br>
+}<br>
+<br>
#endif /* DRIVER_I_H */<br>
--<br>
1.7.4.1<br>
<br>
</div><div class="HOEnZb"><div class="h5">--<br>
Jouni Malinen PGP id EFC895FA<br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</div></div></blockquote></div><br>