diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-02-01 21:06:24 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-02-01 21:06:24 +0000 |
commit | 4b191d9789dca901687e6ce441a363ce56132408 (patch) | |
tree | 1b02277981c5053a2bfab25f5f6b96c10c7cda61 /package/d80211/src/ieee80211_sysfs.c | |
parent | 91ea78a8426e0962192a60368110c637411d4408 (diff) |
update d80211 to latest wireless-dev version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6241 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/d80211/src/ieee80211_sysfs.c')
-rw-r--r-- | package/d80211/src/ieee80211_sysfs.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/package/d80211/src/ieee80211_sysfs.c b/package/d80211/src/ieee80211_sysfs.c index 6a60077d7a..b9d0973d1b 100644 --- a/package/d80211/src/ieee80211_sysfs.c +++ b/package/d80211/src/ieee80211_sysfs.c @@ -189,15 +189,13 @@ __IEEE80211_LOCAL_SHOW(tx_power_reduction); static ssize_t ieee80211_local_fmt_modes(struct ieee80211_local *local, char *buf) { - int i; - struct ieee80211_hw_modes *mode; + struct ieee80211_hw_mode *mode; char *p = buf; - /* FIXME: locking against ieee80211_update_hw? */ - for (i = 0; i < local->hw.num_modes; i++) { - mode = &local->hw.modes[i]; + /* FIXME: Locking? Could register a mode in the meantime. */ + list_for_each_entry(mode, &local->modes_list, list) p += sprintf(p, "%s\n", ieee80211_mode_str_short(mode->mode)); - } + return (p - buf); } __IEEE80211_LOCAL_SHOW(modes); |