]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: r8188eu: remove issue_action_spct_ch_switch function
authorIvan Safonov <insafonov@gmail.com>
Wed, 24 Aug 2016 08:19:57 +0000 (15:19 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2016 16:01:39 +0000 (18:01 +0200)
Driver does not use this function.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/include/rtw_mlme_ext.h

index 7f32b39e58691391dfa75ad9cb4b7b8f0b31df5b..40e0b60949e31885a38bef46ece5db62de9167c2 100644 (file)
@@ -1559,66 +1559,6 @@ exit:
        return ret;
 }
 
-void issue_action_spct_ch_switch(struct adapter *padapter, u8 *ra, u8 new_ch, u8 ch_offset)
-{
-       struct xmit_frame                       *pmgntframe;
-       struct pkt_attrib                       *pattrib;
-       unsigned char                           *pframe;
-       struct rtw_ieee80211_hdr        *pwlanhdr;
-       __le16 *fctrl;
-       struct xmit_priv                        *pxmitpriv = &(padapter->xmitpriv);
-       struct mlme_ext_priv    *pmlmeext = &(padapter->mlmeextpriv);
-
-
-       DBG_88E(FUNC_NDEV_FMT" ra =%pM, ch:%u, offset:%u\n",
-               FUNC_NDEV_ARG(padapter->pnetdev), ra, new_ch, ch_offset);
-
-       pmgntframe = alloc_mgtxmitframe(pxmitpriv);
-       if (pmgntframe == NULL)
-               return;
-
-       /* update attribute */
-       pattrib = &pmgntframe->attrib;
-       update_mgntframe_attrib(padapter, pattrib);
-
-       memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
-
-       pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
-       pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
-
-       fctrl = &(pwlanhdr->frame_ctl);
-       *(fctrl) = 0;
-
-       memcpy(pwlanhdr->addr1, ra, ETH_ALEN); /* RA */
-       memcpy(pwlanhdr->addr2, myid(&(padapter->eeprompriv)), ETH_ALEN); /* TA */
-       memcpy(pwlanhdr->addr3, ra, ETH_ALEN); /* DA = RA */
-
-       SetSeqNum(pwlanhdr, pmlmeext->mgnt_seq);
-       pmlmeext->mgnt_seq++;
-       SetFrameSubType(pframe, WIFI_ACTION);
-
-       pframe += sizeof(struct rtw_ieee80211_hdr_3addr);
-       pattrib->pktlen = sizeof(struct rtw_ieee80211_hdr_3addr);
-
-       /* category, action */
-       {
-               u8 category, action;
-               category = RTW_WLAN_CATEGORY_SPECTRUM_MGMT;
-               action = RTW_WLAN_ACTION_SPCT_CHL_SWITCH;
-
-               pframe = rtw_set_fixed_ie(pframe, 1, &(category), &(pattrib->pktlen));
-               pframe = rtw_set_fixed_ie(pframe, 1, &(action), &(pattrib->pktlen));
-       }
-
-       pframe = rtw_set_ie_ch_switch(pframe, &(pattrib->pktlen), 0, new_ch, 0);
-       pframe = rtw_set_ie_secondary_ch_offset(pframe, &(pattrib->pktlen),
-               hal_ch_offset_to_secondary_ch_offset(ch_offset));
-
-       pattrib->last_txcmdsz = pattrib->pktlen;
-
-       dump_mgntframe(padapter, pmgntframe);
-}
-
 static void issue_action_BA(struct adapter *padapter, unsigned char *raddr,
                            unsigned char action, unsigned short status)
 {
index 27382ff24a84a49106130d25934c37be0412c1de..9c2447e6d161220cd5851468ae0fe3e59df422be 100644 (file)
@@ -562,8 +562,6 @@ int issue_qos_nulldata(struct adapter *padapter, unsigned char *da,
                       u16 tid, int try_cnt, int wait_ms);
 int issue_deauth(struct adapter *padapter, unsigned char *da,
                 unsigned short reason);
-void issue_action_spct_ch_switch(struct adapter *padapter, u8 *ra, u8 new_ch,
-                                u8 ch_offset);
 unsigned int send_delba(struct adapter *padapter, u8 initiator, u8 *addr);
 unsigned int send_beacon(struct adapter *padapter);