Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: r8188eu: remove rtw_ap_inform_ch_switch function

Driver does not use this function.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ivan Safonov and committed by
Greg Kroah-Hartman
fd0a793a d7335dc9

-35
-34
drivers/staging/rtl8188eu/core/rtw_ap.c
··· 1710 1710 return beacon_updated; 1711 1711 } 1712 1712 1713 - int rtw_ap_inform_ch_switch(struct adapter *padapter, u8 new_ch, u8 ch_offset) 1714 - { 1715 - struct list_head *phead, *plist; 1716 - struct sta_info *psta = NULL; 1717 - struct sta_priv *pstapriv = &padapter->stapriv; 1718 - struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; 1719 - struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); 1720 - u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; 1721 - 1722 - if ((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE) 1723 - return 0; 1724 - 1725 - DBG_88E(FUNC_NDEV_FMT" with ch:%u, offset:%u\n", 1726 - FUNC_NDEV_ARG(padapter->pnetdev), new_ch, ch_offset); 1727 - 1728 - spin_lock_bh(&pstapriv->asoc_list_lock); 1729 - phead = &pstapriv->asoc_list; 1730 - plist = phead->next; 1731 - 1732 - /* for each sta in asoc_queue */ 1733 - while (phead != plist) { 1734 - psta = container_of(plist, struct sta_info, asoc_list); 1735 - plist = plist->next; 1736 - 1737 - issue_action_spct_ch_switch(padapter, psta->hwaddr, new_ch, ch_offset); 1738 - psta->expire_to = min_t(unsigned int, pstapriv->expire_to * 2, 5); 1739 - } 1740 - spin_unlock_bh(&pstapriv->asoc_list_lock); 1741 - 1742 - issue_action_spct_ch_switch(padapter, bc_addr, new_ch, ch_offset); 1743 - 1744 - return 0; 1745 - } 1746 - 1747 1713 int rtw_sta_flush(struct adapter *padapter) 1748 1714 { 1749 1715 struct list_head *phead, *plist;
-1
drivers/staging/rtl8188eu/include/rtw_ap.h
··· 50 50 u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, 51 51 bool active, u16 reason); 52 52 int rtw_sta_flush(struct adapter *padapter); 53 - int rtw_ap_inform_ch_switch(struct adapter *padapter, u8 new_ch, u8 ch_offset); 54 53 void start_ap_mode(struct adapter *padapter); 55 54 void stop_ap_mode(struct adapter *padapter); 56 55 #endif /* end of CONFIG_88EU_AP_MODE */