summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/src/iwinfo_wext_scan.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-26 01:35:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-26 01:35:42 +0000
commite66ab6bd2ca3bf51f6951e9b293b7742cd1a86a1 (patch)
tree384997dc672bc641fcb72f669254243043d6513c /libs/iwinfo/src/iwinfo_wext_scan.c
parent3b42dc16889bc10889e9f8cd56e0ab93b105086b (diff)
libs/iwinfo: return bitrate in kilobits to properly handle .5 rates
Diffstat (limited to 'libs/iwinfo/src/iwinfo_wext_scan.c')
-rw-r--r--libs/iwinfo/src/iwinfo_wext_scan.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/iwinfo/src/iwinfo_wext_scan.c b/libs/iwinfo/src/iwinfo_wext_scan.c
index 7c461b5e7..202362336 100644
--- a/libs/iwinfo/src/iwinfo_wext_scan.c
+++ b/libs/iwinfo/src/iwinfo_wext_scan.c
@@ -349,7 +349,7 @@ static inline void wext_fill_wpa(unsigned char *iebuf, int buflen, struct iwinfo
}
-static inline int wext_fill_entry(struct stream_descr *stream, struct iw_event *event,
+static inline void wext_fill_entry(struct stream_descr *stream, struct iw_event *event,
struct iw_range *iw_range, int has_range, struct iwinfo_scanlist_entry *e)
{
int i;
@@ -458,8 +458,6 @@ static inline int wext_fill_entry(struct stream_descr *stream, struct iw_event *
break;
}
-
- return 0;
}
@@ -467,7 +465,6 @@ int wext_get_scanlist(const char *ifname, char *buf, int *len)
{
struct iwreq wrq;
struct iw_scan_req scanopt; /* Options for 'set' */
- //int scanflags = 0; /* Flags for scan */
unsigned char *buffer = NULL; /* Results */
int buflen = IW_SCAN_MAX_DATA; /* Min for compat WE<17 */
struct iw_range range;
@@ -478,7 +475,6 @@ int wext_get_scanlist(const char *ifname, char *buf, int *len)
int entrylen = 0;
struct iwinfo_scanlist_entry e;
- //IWINFO_BUFSIZE
wrq.u.data.pointer = (caddr_t) &range;
wrq.u.data.length = sizeof(struct iw_range);
wrq.u.data.flags = 0;