Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 237379
b: refs/heads/master
c: 192abec
h: refs/heads/master
i:
  237377: fa5980d
  237375: e6ecb09
v: v3
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Feb 14, 2011
1 parent 9a003c6 commit d124e94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91f71fa5da00ff50398d8592f304cfec54eed550
refs/heads/master: 192abece7565ab37048dfd5eced966cfb2fda6f5
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/p54/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static int p54_compare_channels(const void *_a,
const struct p54_channel_entry *a = _a;
const struct p54_channel_entry *b = _b;

return a->index - b->index;
return a->freq - b->freq;
}

static int p54_fill_band_bitrates(struct ieee80211_hw *dev,
Expand Down Expand Up @@ -291,7 +291,7 @@ static int p54_generate_channel_lists(struct ieee80211_hw *dev)
}
}

/* sort the list by the channel index */
/* sort the channel list by frequency */
sort(list->channels, list->entries, sizeof(struct p54_channel_entry),
p54_compare_channels, NULL);

Expand Down

0 comments on commit d124e94

Please sign in to comment.