Skip to contentSkip to conversation

remove unused routines from d80211 version of bcm43xx

PATCH In review Larry Finger 2 participants 2 messages Jul 14, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unused routines from d80211 version of bcm43xx

This patch removes some unused static inline routines from bcm43xx-d80211 version of bcm43xx_main.h.

===========================================================

index e228833..04d8b91 100644

drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.h +0 -24
@@ -112,30 +112,6 @@ int bcm43xx_channel_to_freq(struct bcm43
    return bcm43xx_channel_to_freq_bg(channel);
 }
 
-/* Lightweight function to check if a channel number is valid.
- * Note that this does _NOT_ check for geographical restrictions!
- */
-static inline
-int bcm43xx_is_valid_channel_a(u8 channel)
-{
-    return (channel >= IEEE80211_52GHZ_MIN_CHANNEL
-           && channel <= IEEE80211_52GHZ_MAX_CHANNEL);
-}
-static inline
-int bcm43xx_is_valid_channel_bg(u8 channel)
-{
-    return (channel >= IEEE80211_24GHZ_MIN_CHANNEL
-           && channel <= IEEE80211_24GHZ_MAX_CHANNEL);
-}
-static inline
-int bcm43xx_is_valid_channel(struct bcm43xx_private *bcm,
-                  u8 channel)
-{
-    if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A)
-        return bcm43xx_is_valid_channel_a(channel);
-    return bcm43xx_is_valid_channel_bg(channel);
-}
-
 void bcm43xx_tsf_read(struct bcm43xx_private *bcm, u64 *tsf);
 void bcm43xx_tsf_write(struct bcm43xx_private *bcm, u64 tsf);
 

===============================================================

#1 lore raw
Quoted 3 lines · you

This patch removes some unused static inline routines from bcm43xx-d80211 version of bcm43xx_main.h.

Quoted 35 lines

===========================================================

index e228833..04d8b91 100644

drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.h +0 -24
@@ -112,30 +112,6 @@ int bcm43xx_channel_to_freq(struct bcm43
     return bcm43xx_channel_to_freq_bg(channel);
  }
 
-/* Lightweight function to check if a channel number is valid.
- * Note that this does _NOT_ check for geographical restrictions!
- */
-static inline
-int bcm43xx_is_valid_channel_a(u8 channel)
-{
-    return (channel >= IEEE80211_52GHZ_MIN_CHANNEL
-           && channel <= IEEE80211_52GHZ_MAX_CHANNEL);
-}
-static inline
-int bcm43xx_is_valid_channel_bg(u8 channel)
-{
-    return (channel >= IEEE80211_24GHZ_MIN_CHANNEL
-           && channel <= IEEE80211_24GHZ_MAX_CHANNEL);
-}
-static inline
-int bcm43xx_is_valid_channel(struct bcm43xx_private *bcm,
-                  u8 channel)
-{
-    if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A)
-        return bcm43xx_is_valid_channel_a(channel);
-    return bcm43xx_is_valid_channel_bg(channel);
-}
-
  void bcm43xx_tsf_read(struct bcm43xx_private *bcm, u64 *tsf);
  void bcm43xx_tsf_write(struct bcm43xx_private *bcm, u64 tsf);
Signature · 1 line
Greetings Michael.