Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66490
b: refs/heads/master
c: 00af015
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and David S. Miller committed Oct 10, 2007
1 parent 8e127e5 commit 80ed0cb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0edef215e405fef3c6569511a9aebeeb3f6cd799
refs/heads/master: 00af0157e0a603e2a2ce0896179f2dd43f0f28ab
14 changes: 14 additions & 0 deletions trunk/drivers/net/wireless/libertas/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,8 @@ int libertas_send_specific_ssid_scan(wlan_private * priv,
return ret;
}

#define MAX_CUSTOM_LEN 64

static inline char *libertas_translate_scan(wlan_private *priv,
char *start, char *stop,
struct bss_descriptor *bss)
Expand Down Expand Up @@ -1467,6 +1469,18 @@ static inline char *libertas_translate_scan(wlan_private *priv,
start = iwe_stream_add_point(start, stop, &iwe, buf);
}

if (bss->mesh) {
char custom[MAX_CUSTOM_LEN];
char *p = custom;

iwe.cmd = IWEVCUSTOM;
p += snprintf(p, MAX_CUSTOM_LEN - (p - custom),
"mesh-type: olpc");
iwe.u.data.length = p - custom;
if (iwe.u.data.length)
start = iwe_stream_add_point(start, stop, &iwe, custom);
}

return start;
}

Expand Down

0 comments on commit 80ed0cb

Please sign in to comment.