staging: rtl8723au: Remove some pointless cfg80211_* wrapper macros
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 25 May 2014 20:43:17 +0000 (22:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 May 2014 22:14:40 +0000 (15:14 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/include/ioctl_cfg80211.h
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c

index e1eaf9c29e8abcf35330d8b971a97e03da421749..256000f2bebd468cf39dfa2a521ca925d7027000 100644 (file)
@@ -68,23 +68,4 @@ void rtw_cfg80211_rx_action(struct rtw_adapter *adapter, u8 *frame,
 
 bool rtw_cfg80211_pwr_mgmt(struct rtw_adapter *adapter);
 
-#define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp)    \
-       cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, 0, gfp)
-
-#define rtw_cfg80211_send_rx_assoc(adapter, bss, buf, len)             \
-       cfg80211_send_rx_assoc((adapter)->pnetdev, bss, buf, len)
-
-#define rtw_cfg80211_mgmt_tx_status(adapter, cookie, buf, len, ack, gfp) \
-       cfg80211_mgmt_tx_status((adapter)->rtw_wdev, cookie, buf,       \
-                               len, ack, gfp)
-
-#define rtw_cfg80211_ready_on_channel(adapter, cookie, chan,           \
-                                     channel_type, duration, gfp)      \
-       cfg80211_ready_on_channel((adapter)->rtw_wdev, cookie, chan,    \
-                                 duration, gfp)
-#define rtw_cfg80211_remain_on_channel_expired(adapter, cookie, chan,  \
-                                              chan_type, gfp)          \
-       cfg80211_remain_on_channel_expired((adapter)->rtw_wdev,         \
-                                          cookie, chan, gfp)
-
 #endif /* __IOCTL_CFG80211_H__ */
index 017ea44ee433519224634797d339aba6a6429aca..9f9f034fd5e6cc96feb97b8a7a5c69555c06e304 100644 (file)
@@ -2433,8 +2433,8 @@ void rtw_cfg80211_indicate_sta_assoc(struct rtw_adapter *padapter,
                freq = ieee80211_channel_to_frequency(channel,
                                                      IEEE80211_BAND_5GHZ);
 
-       rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len,
-                            GFP_ATOMIC);
+       cfg80211_rx_mgmt(padapter->rtw_wdev, freq, 0, pmgmt_frame, frame_len,
+                        0, GFP_ATOMIC);
 #endif /* defined(RTW_USE_CFG80211_STA_EVENT) */
 }
 
@@ -2489,8 +2489,8 @@ void rtw_cfg80211_indicate_sta_disassoc(struct rtw_adapter *padapter,
                                       WLAN_REASON_PREV_AUTH_NOT_VALID,
                                       (unsigned char *)&reason, &frame_len);
 
-       rtw_cfg80211_rx_mgmt(padapter, freq, 0, mgmt_buf, frame_len,
-                            GFP_ATOMIC);
+       cfg80211_rx_mgmt(padapter->rtw_wdev, freq, 0, mgmt_buf, frame_len,
+                        0, GFP_ATOMIC);
 #endif /* defined(RTW_USE_CFG80211_STA_EVENT) */
 }
 
@@ -3039,7 +3039,8 @@ void rtw_cfg80211_rx_action(struct rtw_adapter *adapter, u8 *frame,
                freq = ieee80211_channel_to_frequency(channel,
                                                      IEEE80211_BAND_5GHZ);
 
-       rtw_cfg80211_rx_mgmt(adapter, freq, 0, frame, frame_len, GFP_ATOMIC);
+       cfg80211_rx_mgmt(adapter->rtw_wdev, freq, 0, frame, frame_len,
+                        0, GFP_ATOMIC);
 }
 
 static int _cfg80211_rtw_mgmt_tx(struct rtw_adapter *padapter, u8 tx_ch,
@@ -3141,8 +3142,8 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
                  padapter->pnetdev->name, len, tx_ch);
 
        /* indicate ack before issue frame to avoid racing with rsp frame */
-       rtw_cfg80211_mgmt_tx_status(padapter, *cookie, buf, len, ack,
-                                   GFP_KERNEL);
+       cfg80211_mgmt_tx_status(padapter->rtw_wdev, *cookie, buf, len, ack,
+                               GFP_KERNEL);
 
        DBG_8723A("RTW_Tx:tx_ch =%d, da =" MAC_FMT "\n", tx_ch,
                  MAC_ARG(hdr->da));