From 74f536979f9bc69124109adf3da8b7e94ab4e870 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 20 Jun 2007 23:56:40 -0400 Subject: [PATCH] Rename functions ending with "matched" to start with "at76_match" It's more natural to use a common prefix, not suffix, for similar functions. Signed-off-by: Pavel Roskin --- at76_usb.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/at76_usb.c b/at76_usb.c index ffc517e..c8ce70b 100644 --- a/at76_usb.c +++ b/at76_usb.c @@ -4153,7 +4153,7 @@ static int at76_load_internal_fw(struct usb_device *udev, struct fwentry *fwe) return ret; } -static int at76_essid_matched(struct at76_priv *priv, struct bss_info *ptr) +static int at76_match_essid(struct at76_priv *priv, struct bss_info *ptr) { /* common criteria for both modi */ @@ -4167,8 +4167,7 @@ static int at76_essid_matched(struct at76_priv *priv, struct bss_info *ptr) return ret; } -static inline int at76_mode_matched(struct at76_priv *priv, - struct bss_info *ptr) +static inline int at76_match_mode(struct at76_priv *priv, struct bss_info *ptr) { int ret; @@ -4183,7 +4182,7 @@ static inline int at76_mode_matched(struct at76_priv *priv, return ret; } -static int at76_rates_matched(struct at76_priv *priv, struct bss_info *ptr) +static int at76_match_rates(struct at76_priv *priv, struct bss_info *ptr) { int i; u8 *rate; @@ -4213,7 +4212,7 @@ static int at76_rates_matched(struct at76_priv *priv, struct bss_info *ptr) return 1; } -static inline int at76_wep_matched(struct at76_priv *priv, struct bss_info *ptr) +static inline int at76_match_wep(struct at76_priv *priv, struct bss_info *ptr) { if (!priv->wep_enabled && ptr->capa & WLAN_CAPABILITY_PRIVACY) { /* we have disabled WEP, but the BSS signals privacy */ @@ -4227,8 +4226,7 @@ static inline int at76_wep_matched(struct at76_priv *priv, struct bss_info *ptr) return 1; } -static inline int at76_bssid_matched(struct at76_priv *priv, - struct bss_info *ptr) +static inline int at76_match_bssid(struct at76_priv *priv, struct bss_info *ptr) { if (!priv->wanted_bssid_valid || !compare_ether_addr(ptr->bssid, priv->wanted_bssid)) { @@ -4262,11 +4260,9 @@ static struct bss_info *at76_match_bss(struct at76_priv *priv, curr = last != NULL ? last->list.next : priv->bss_list.next; while (curr != &priv->bss_list) { ptr = list_entry(curr, struct bss_info, list); - if (at76_essid_matched(priv, ptr) && - at76_mode_matched(priv, ptr) && - at76_wep_matched(priv, ptr) && - at76_rates_matched(priv, ptr) && - at76_bssid_matched(priv, ptr)) + if (at76_match_essid(priv, ptr) && at76_match_mode(priv, ptr) + && at76_match_wep(priv, ptr) && at76_match_rates(priv, ptr) + && at76_match_bssid(priv, ptr)) break; curr = curr->next; } -- cgit v1.2.3