diff mbox

[OPW,kernel,05/24] staging: rtl8187se: Deleted 'rsn_authen_cipher_suite' and ext_ieee80211_send_beacon_wq functions

Message ID acae7115d00753ee6d4d07f54a1fa2d286fb3b8d.1394629145.git.anarey@gmail.com
State New, archived
Headers show

Commit Message

Ana Rey March 12, 2014, 1:09 p.m. UTC
After the next warning messages by sparse tools:
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:27:11: warning: ‘rsn_authen_cipher_suite’ defined but not used [-Wunused-variable]
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:327:13: warning: ‘ext_ieee80211_send_beacon_wq’ defined but not used [-Wunused-function]

And a search without result, I decided to delete both.

Signed-off-by: Ana Rey <anarey@gmail.com>
---
 .../rtl8187se/ieee80211/ieee80211_softmac.c        | 28 ----------------------
 1 file changed, 28 deletions(-)
diff mbox

Patch

diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
index 6185c13..dee2bf1 100644
--- a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
@@ -24,15 +24,6 @@ 
 
 #include "dot11d.h"
 
-static u8 rsn_authen_cipher_suite[16][4] = {
-	{0x00, 0x0F, 0xAC, 0x00}, /* Use group key */ /* Reserved */
-	{0x00, 0x0F, 0xAC, 0x01}, /* WEP-40 */ /* RSNA default */
-	{0x00, 0x0F, 0xAC, 0x02}, /* TKIP */ /* NONE */	/* {used just as default} */
-	{0x00, 0x0F, 0xAC, 0x03}, /* WRAP-historical */
-	{0x00, 0x0F, 0xAC, 0x04}, /* CCMP */
-	{0x00, 0x0F, 0xAC, 0x05}, /* WEP-104 */
-};
-
 short ieee80211_is_54g(const struct ieee80211_network *net)
 {
 	return (net->rates_ex_len > 0) || (net->rates_len > 4);
@@ -324,25 +315,6 @@  inline struct sk_buff *ieee80211_probe_req(struct ieee80211_device *ieee)
 
 struct sk_buff *ieee80211_get_beacon_(struct ieee80211_device *ieee);
 
-static void ext_ieee80211_send_beacon_wq(struct ieee80211_device *ieee)
-{
-	struct sk_buff *skb;
-
-	skb = ieee80211_get_beacon_(ieee);
-
-	if (skb){
-		softmac_mgmt_xmit(skb, ieee);
-		ieee->softmac_stats.tx_beacons++;
-		dev_kfree_skb_any(skb);
-	}
-
-	ieee->beacon_timer.expires = jiffies +
-		(MSECS( ieee->current_network.beacon_interval -5));
-
-	if(ieee->beacon_txing)
-		add_timer(&ieee->beacon_timer);
-}
-
 static void ieee80211_send_beacon(struct ieee80211_device *ieee)
 {
 	struct sk_buff *skb;