return connect_allow ? _SUCCESS : _FAIL;
 }
 
-/* Find union about ch, bw, ch_offset of all linked/linking interfaces */
-int rtw_get_ch_setting_union(struct adapter *adapter, u8 *ch, u8 *bw, u8 *offset)
-{
-       struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
-       struct adapter *iface;
-
-       if (ch)
-               *ch = 0;
-       if (bw)
-               *bw = CHANNEL_WIDTH_20;
-       if (offset)
-               *offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
-
-       iface = dvobj->padapters;
-
-       if (!check_fwstate(&iface->mlmepriv, _FW_LINKED|_FW_UNDER_LINKING))
-               return 0;
-
-       return 1;
-}
-
 u8 set_ch_hdl(struct adapter *padapter, u8 *pbuf)
 {
        struct set_ch_parm *set_ch_parm;
 
 extern u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer);
 
 int rtw_chk_start_clnt_join(struct adapter *padapter, u8 *ch, u8 *bw, u8 *offset);
-int rtw_get_ch_setting_union(struct adapter *adapter, u8 *ch, u8 *bw, u8 *offset);
 
 struct cmd_hdl {
        uint    parmsize;