A patch to enable IBSS (Ad-Hoc) mode

View: New views
2 Messages — Rating Filter:   Alert me  

A patch to enable IBSS (Ad-Hoc) mode

by Gasper Zejn-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

I'm new to this list and I'd like to submit a small patch I've been using to
enable adhoc mode with zd1211rw.

I've patched 2.6.25 and 2.6.26-rc4 with this and adhoc worked without any
serious problems. I used adhoc to connect to oslrd based mesh.

But ... I really haven't looked deeper so I might have done something wrong.

Regards,
Gasper Zejn

[zd_enable_ibss.patch]

--- a/drivers/net/wireless/zd1211rw/zd_mac.c
+++ b/drivers/net/wireless/zd1211rw/zd_mac.c
@@ -748,6 +748,8 @@ static int zd_op_add_interface(struct ieee80211_hw *hw,
  return -EOPNOTSUPP;
 
  switch (conf->type) {
+ case IEEE80211_IF_TYPE_IBSS:
+ printk("zd1211rw: Experimental ad-hoc\n");
  case IEEE80211_IF_TYPE_MNTR:
  case IEEE80211_IF_TYPE_MESH_POINT:
  case IEEE80211_IF_TYPE_STA:
@@ -781,7 +783,7 @@ static int zd_op_config_interface(struct ieee80211_hw *hw,
  struct zd_mac *mac = zd_hw_mac(hw);
  int associated;
 
- if (mac->type == IEEE80211_IF_TYPE_MESH_POINT) {
+ if (mac->type == IEEE80211_IF_TYPE_MESH_POINT || mac->type == IEEE80211_IF_TYPE_IBSS) {
  associated = true;
  if (conf->beacon) {
  zd_mac_config_beacon(hw, conf->beacon);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Zd1211-devs mailing list - http://zd1211.wiki.sourceforge.net/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs

Re: A patch to enable IBSS (Ad-Hoc) mode

by Hin-Tak Leung-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Consider following the guidelines for submitting patches, and/or post
to the linuxwireless devel list:

http://linuxwireless.org/en/developers/Documentation/SubmittingPatches


--- On Sun, 1/6/08, Gasper Zejn <zejn@...> wrote:

> From: Gasper Zejn <zejn@...>
> Subject: [zd1211-devs] A patch to enable IBSS (Ad-Hoc) mode
> To: zd1211-devs@...
> Date: Sunday, 1 June, 2008, 12:21 AM
> Hi.
>
> I'm new to this list and I'd like to submit a small
> patch I've been using to
> enable adhoc mode with zd1211rw.
>
> I've patched 2.6.25 and 2.6.26-rc4 with this and adhoc
> worked without any
> serious problems. I used adhoc to connect to oslrd based
> mesh.
>
> But ... I really haven't looked deeper so I might have
> done something wrong.
>
> Regards,
> Gasper
> Zejn-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
> Zd1211-devs mailing list -
> http://zd1211.wiki.sourceforge.net/
> Unsubscribe:
> https://lists.sourceforge.net/lists/listinfo/zd1211-devs


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Zd1211-devs mailing list - http://zd1211.wiki.sourceforge.net/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs
LightInTheBox - Buy quality products at wholesale price