mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2025-07-31 20:31:05 +00:00
update + NAT + rtlbtool
This commit is contained in:
parent
b381813514
commit
54bf751b9c
62 changed files with 2268 additions and 3067 deletions
|
|
@ -242,7 +242,7 @@ typedef struct ieee_param {
|
|||
u16 capability;
|
||||
int flags;
|
||||
u8 tx_supp_rates[16];
|
||||
struct rtw_ieee80211_ht_cap ht_cap;
|
||||
struct rtw_ieee80211_ht_cap ht_cap;
|
||||
} add_sta;
|
||||
struct {
|
||||
u8 reserved[2];//for set max_num_sta
|
||||
|
|
|
|||
|
|
@ -665,7 +665,7 @@ __inline static uint get_WLAN_BSSID_EX_sz(WLAN_BSSID_EX *bss)
|
|||
}
|
||||
|
||||
struct wlan_network {
|
||||
_list list;
|
||||
struct list_head list;
|
||||
int network_type; //refer to ieee80211.h for WIRELESS_11A/B/G
|
||||
int fixed; // set to fixed when not to be removed as site-surveying
|
||||
unsigned long last_scanned; //timestamp for the network
|
||||
|
|
|
|||
|
|
@ -153,8 +153,18 @@ void rltk_wlan_recv(int idx, struct eth_drv_sg *sg_list, int sg_len)
|
|||
#endif
|
||||
}
|
||||
|
||||
/* uses in void __fastcall rltk_netif_rx(sk_buff *skb) */
|
||||
|
||||
int netif_is_valid_IP(int idx, unsigned char *ip_dest)
|
||||
{
|
||||
#if IP_FORWARD // add pvvx
|
||||
return 1;
|
||||
#elif defined(CONFIG_DONT_CARE_TP)
|
||||
if(pnetif->flags & NETIF_FLAG_IPSWITCH)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
#else
|
||||
#if CONFIG_LWIP_LAYER == 1
|
||||
#if DEVICE_EMAC
|
||||
struct netif *pnetif = xnetif[idx];
|
||||
|
|
@ -187,13 +197,9 @@ int netif_is_valid_IP(int idx, unsigned char *ip_dest)
|
|||
return 1;
|
||||
|
||||
DBG_TRACE("invalid IP: %d.%d.%d.%d ",ip_dest[0],ip_dest[1],ip_dest[2],ip_dest[3]);
|
||||
#endif
|
||||
#ifdef CONFIG_DONT_CARE_TP
|
||||
if(pnetif->flags & NETIF_FLAG_IPSWITCH)
|
||||
return 1;
|
||||
else
|
||||
#endif
|
||||
return 0;
|
||||
#endif // CONFIG_LWIP_LAYER
|
||||
#endif // IP_FORWARD / CONFIG_DONT_CARE_TP
|
||||
}
|
||||
|
||||
int netif_get_idx(struct netif *pnetif)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue