Skip to content

Commit

Permalink
mac80211: report operating frequency rather than current
Browse files Browse the repository at this point in the history
It's not very helpful to see, in iwconfig, the current frequency
the card is tuned to if that frequency is currently somewhere
across the board because we're scanning. Since we keep track of
the frequency the user wants, display that instead.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 6, 2009
1 parent 1b06bb4 commit 7738231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static int ieee80211_ioctl_giwfreq(struct net_device *dev,
if (sdata->vif.type == NL80211_IFTYPE_ADHOC)
return cfg80211_ibss_wext_giwfreq(dev, info, freq, extra);

freq->m = local->hw.conf.channel->center_freq;
freq->m = local->oper_channel->center_freq;
freq->e = 6;

return 0;
Expand Down

0 comments on commit 7738231

Please sign in to comment.