return NULL;
 }
 
+static u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates)
+{
+       int i;
+       u32 ret = 0;
+       /* The device only supports 2GHz */
+       struct ieee80211_supported_band *sband = wdev->hw->wiphy->bands[NL80211_BAND_2GHZ];
+
+       for (i = 0; i < sband->n_bitrates; i++) {
+               if (rates & BIT(i)) {
+                       if (i >= sband->n_bitrates)
+                               dev_warn(wdev->dev, "unsupported basic rate\n");
+                       else
+                               ret |= BIT(sband->bitrates[i].hw_value);
+               }
+       }
+       return ret;
+}
+
 int wfx_cmd_send(struct wfx_dev *wdev, struct wfx_hif_msg *request,
                 void *reply, size_t reply_len, bool no_reply)
 {
 
 
 #define HIF_MAX_ARP_IP_ADDRTABLE_ENTRIES 2
 
-u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates)
-{
-       int i;
-       u32 ret = 0;
-       /* The device only supports 2GHz */
-       struct ieee80211_supported_band *sband = wdev->hw->wiphy->bands[NL80211_BAND_2GHZ];
-
-       for (i = 0; i < sband->n_bitrates; i++) {
-               if (rates & BIT(i)) {
-                       if (i >= sband->n_bitrates)
-                               dev_warn(wdev->dev, "unsupported basic rate\n");
-                       else
-                               ret |= BIT(sband->bitrates[i].hw_value);
-               }
-       }
-       return ret;
-}
-
 void wfx_cooling_timeout_work(struct work_struct *work)
 {
        struct wfx_dev *wdev = container_of(to_delayed_work(work), struct wfx_dev,
 
 
 /* Other Helpers */
 void wfx_reset(struct wfx_vif *wvif);
-u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates);
 
 #endif