mxm_wifiex: fix build errors on L7.0 kernel next tree

When build wifi driver based on L7.0 kernel next tree, will observe the
following build errors. These are caused by the upstream patches:
7c6084d7fa4e6 ("wifi: cfg80211: support key installation on non-netdev wdevs")
033fe322f5852 ("wifi: nl80211/cfg80211: support stations of non-netdev interfaces")
08e6183ed2568 ("wifi: move action code from per-type frame structs")
Need to change corresponding APIs here to avoid the build break.

mlinux/moal_shim.c: In function ‘moal_recv_event’:
mlinux/moal_shim.c:5041:62: error: passing argument 1 of ‘cfg80211_new_sta’ from incompatible pointer type [-Wincompatible-pointer-types]
 5041 |                                         cfg80211_new_sta(priv->netdev,
      |                                                          ~~~~^~~~~~~~
      |                                                              |
      |                                                              struct net_device *
In file included from mlinux/moal_main.h:160,
                 from mlinux/moal_shim.c:28:
linux-nxp-rebase/include/net/cfg80211.h:8972:44: note: expected ‘struct wireless_dev *’ but argument is of type ‘struct net_device *’
 8972 | void cfg80211_new_sta(struct wireless_dev *wdev, const u8 *mac_addr,
      |                       ~~~~~~~~~~~~~~~~~~~~~^~~~
mlinux/moal_sta_cfg80211.c: In function ‘woal_construct_tdls_action_frame’:
mlinux/moal_sta_cfg80211.c:9329:55: error: ‘struct <anonymous>’ has no member named ‘u’
 9329 |                 skb_put(skb, 1 + sizeof(mgmt->u.action.u.tdls_discover_resp));
      |                                                       ^
mlinux/moal_sta_cfg80211.c:9331:31: error: ‘struct <anonymous>’ has no member named ‘u’
 9331 |                 mgmt->u.action.u.tdls_discover_resp.action_code =
      |                               ^
mlinux/moal_sta_cfg80211.c:9333:31: error: ‘struct <anonymous>’ has no member named ‘u’
 9333 |                 mgmt->u.action.u.tdls_discover_resp.dialog_token = dialog_token;
      |                               ^
mlinux/moal_sta_cfg80211.c:9334:31: error: ‘struct <anonymous>’ has no member named ‘u’
 9334 |                 mgmt->u.action.u.tdls_discover_resp.capability =
      |                               ^
mlinux/moal_sta_cfg80211.c:9338:50: error: ‘struct <anonymous>’ has no member named ‘u’
 9338 |                         1 + sizeof(mgmt->u.action.u.tdls_discover_resp));
      |                                                  ^
mlinux/moal_sta_cfg80211.c: In function ‘woal_cfg80211_uap_add_station’:
mlinux/moal_sta_cfg80211.c:11172:42: error: passing argument 1 of ‘cfg80211_new_sta’ from incompatible pointer type [-Wincompatible-pointer-types]
11172 |                         cfg80211_new_sta(dev, mac, sinfo, GFP_KERNEL);
      |                                          ^~~
      |                                          |
      |                                          struct net_device *
In file included from mlinux/moal_main.h:160,
                 from mlinux/moal_cfg80211.h:26:
linux-nxp-rebase/include/net/cfg80211.h:8972:44: note: expected ‘struct wireless_dev *’ but argument is of type ‘struct net_device *’
 8972 | void cfg80211_new_sta(struct wireless_dev *wdev, const u8 *mac_addr,
      |                       ~~~~~~~~~~~~~~~~~~~~~^~~~

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
This commit is contained in:
Sherry Sun 2026-04-27 22:21:36 +08:00
parent 94f7717308
commit 031aa9bba0
5 changed files with 162 additions and 12 deletions

View file

@ -1809,7 +1809,12 @@ fail:
* @return 0 -- success, otherwise fail
*/
#endif
int woal_cfg80211_add_key(struct wiphy *wiphy, struct net_device *netdev,
int woal_cfg80211_add_key(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *netdev,
#endif
#if ((KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
int link_id,
@ -1820,7 +1825,11 @@ int woal_cfg80211_add_key(struct wiphy *wiphy, struct net_device *netdev,
#endif
const t_u8 *mac_addr, struct key_params *params)
{
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
moal_private *priv = (moal_private *)woal_get_netdev_priv(wdev->netdev);
#else
moal_private *priv = (moal_private *)woal_get_netdev_priv(netdev);
#endif
t_u8 pairwise_key = MFALSE;
ENTER();
@ -1886,7 +1895,12 @@ int woal_cfg80211_add_key(struct wiphy *wiphy, struct net_device *netdev,
* @return 0 -- success, otherwise fail
*/
#endif
int woal_cfg80211_del_key(struct wiphy *wiphy, struct net_device *netdev,
int woal_cfg80211_del_key(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *netdev,
#endif
#if ((KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
int link_id,
@ -1897,7 +1911,11 @@ int woal_cfg80211_del_key(struct wiphy *wiphy, struct net_device *netdev,
#endif
const t_u8 *mac_addr)
{
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
moal_private *priv = (moal_private *)woal_get_netdev_priv(wdev->netdev);
#else
moal_private *priv = (moal_private *)woal_get_netdev_priv(netdev);
#endif
ENTER();
if (priv->phandle->driver_status) {
@ -1982,7 +2000,11 @@ int woal_cfg80211_set_default_key(struct wiphy *wiphy,
#if KERNEL_VERSION(2, 6, 30) <= CFG80211_VERSION_CODE
int woal_cfg80211_set_default_mgmt_key(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *netdev,
#endif
#if ((KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
int link_id,
@ -1997,7 +2019,11 @@ int woal_cfg80211_set_default_mgmt_key(struct wiphy *wiphy,
#if KERNEL_VERSION(5, 10, 0) <= CFG80211_VERSION_CODE
int woal_cfg80211_set_default_beacon_key(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *netdev,
#endif
#if ((KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
int link_id,

View file

@ -153,7 +153,12 @@ int woal_cfg80211_set_wiphy_params(struct wiphy *wiphy,
#endif
u32 changed);
int woal_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
int woal_cfg80211_add_key(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *netdev,
#endif
#if ((KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
int link_id,
@ -164,7 +169,12 @@ int woal_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
#endif
const t_u8 *mac_addr, struct key_params *params);
int woal_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
int woal_cfg80211_del_key(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *netdev,
#endif
#if ((KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
int link_id,
@ -264,7 +274,11 @@ int woal_cfg80211_set_default_key(struct wiphy *wiphy, struct net_device *dev,
#if KERNEL_VERSION(2, 6, 30) <= CFG80211_VERSION_CODE
int woal_cfg80211_set_default_mgmt_key(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *netdev,
#endif
#if ((KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
int link_id,
@ -274,7 +288,11 @@ int woal_cfg80211_set_default_mgmt_key(struct wiphy *wiphy,
#if KERNEL_VERSION(5, 10, 0) <= CFG80211_VERSION_CODE
int woal_cfg80211_set_default_beacon_key(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *netdev,
#endif
#if ((KERNEL_VERSION(6, 1, 0) <= LINUX_VERSION_CODE) || \
(defined(ANDROID_SDK_VERSION) && ANDROID_SDK_VERSION >= 33))
int link_id,
@ -504,7 +522,12 @@ int woal_cfg80211_del_beacon(struct wiphy *wiphy, struct net_device *dev,
#else
int woal_cfg80211_del_beacon(struct wiphy *wiphy, struct net_device *dev);
#endif
int woal_cfg80211_del_station(struct wiphy *wiphy, struct net_device *dev,
int woal_cfg80211_del_station(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
#if KERNEL_VERSION(3, 19, 0) <= CFG80211_VERSION_CODE
struct station_del_parameters *param);
#else

View file

@ -5176,7 +5176,11 @@ mlan_status moal_recv_event(t_void *pmoal, pmlan_event pmevent)
}
#endif /* KERNEL_VERSION */
if (priv->netdev && priv->wdev)
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
cfg80211_new_sta(priv->netdev->ieee80211_ptr,
#else
cfg80211_new_sta(priv->netdev,
#endif
(t_u8 *)addr, sinfo,
GFP_KERNEL);
kfree(sinfo);
@ -5239,7 +5243,11 @@ mlan_status moal_recv_event(t_void *pmoal, pmlan_event pmevent)
} else
#endif
if (priv->netdev && priv->wdev)
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
cfg80211_del_sta(priv->netdev->ieee80211_ptr,
#else
cfg80211_del_sta(priv->netdev,
#endif
pmevent->event_buf + 2,
GFP_KERNEL);

View file

@ -177,7 +177,11 @@ static int woal_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev,
t_u16 reason_code);
static int woal_cfg80211_get_station(struct wiphy *wiphy,
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
const u8 *mac,
#else
@ -186,8 +190,12 @@ static int woal_cfg80211_get_station(struct wiphy *wiphy,
struct station_info *sinfo);
static int woal_cfg80211_dump_station(struct wiphy *wiphy,
struct net_device *dev, int idx,
t_u8 *mac, struct station_info *sinfo);
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
int idx, t_u8 *mac, struct station_info *sinfo);
static int woal_cfg80211_dump_survey(struct wiphy *wiphy,
struct net_device *dev, int idx,
@ -336,7 +344,11 @@ void woal_cfg80211_tdls_cancel_channel_switch(struct wiphy *wiphy,
#endif
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
static int woal_cfg80211_change_station(struct wiphy *wiphy,
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
const u8 *mac,
#else
@ -373,7 +385,11 @@ int woal_cfg80211_uap_add_station(struct wiphy *wiphy, struct net_device *dev,
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
#ifdef UAP_SUPPORT
static int woal_cfg80211_add_station(struct wiphy *wiphy,
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
const u8 *mac,
#else
@ -7041,7 +7057,11 @@ static int woal_cfg80211_disassociate(struct wiphy *wiphy,
* @return 0 -- success, otherwise fail
*/
static int woal_cfg80211_get_station(struct wiphy *wiphy,
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
const u8 *mac,
#else
@ -7050,14 +7070,22 @@ static int woal_cfg80211_get_station(struct wiphy *wiphy,
struct station_info *sinfo)
{
mlan_status ret = MLAN_STATUS_SUCCESS;
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
moal_private *priv = (moal_private *)woal_get_netdev_priv(wdev->netdev);
#else
moal_private *priv = (moal_private *)woal_get_netdev_priv(dev);
#endif
ENTER();
#ifdef UAP_CFG80211
if (GET_BSS_ROLE(priv) == MLAN_BSS_ROLE_UAP) {
LEAVE();
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
return woal_uap_cfg80211_get_station(wiphy, wdev->netdev, mac, sinfo);
#else
return woal_uap_cfg80211_get_station(wiphy, dev, mac, sinfo);
#endif
}
#endif
if (priv->media_connected == MFALSE) {
@ -7071,7 +7099,9 @@ static int woal_cfg80211_get_station(struct wiphy *wiphy,
PRINTM(MERROR, "cfg80211: Failed to get station info\n");
ret = -EFAULT;
}
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
woal_check_auto_tdls(wiphy, wdev->netdev);
#elif CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
woal_check_auto_tdls(wiphy, dev);
#endif
LEAVE();
@ -7090,18 +7120,30 @@ static int woal_cfg80211_get_station(struct wiphy *wiphy,
* @return 0 -- success, otherwise fail
*/
static int woal_cfg80211_dump_station(struct wiphy *wiphy,
struct net_device *dev, int idx,
t_u8 *mac, struct station_info *sinfo)
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
int idx, t_u8 *mac, struct station_info *sinfo)
{
mlan_status ret = MLAN_STATUS_SUCCESS;
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
moal_private *priv = (moal_private *)woal_get_netdev_priv(wdev->netdev);
#else
moal_private *priv = (moal_private *)woal_get_netdev_priv(dev);
#endif
ENTER();
#ifdef UAP_CFG80211
if (GET_BSS_ROLE(priv) == MLAN_BSS_ROLE_UAP) {
LEAVE();
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
return woal_uap_cfg80211_dump_station(wiphy, wdev->netdev, idx, mac,
#else
return woal_uap_cfg80211_dump_station(wiphy, dev, idx, mac,
#endif
sinfo);
}
#endif
@ -9444,6 +9486,16 @@ static int woal_construct_tdls_action_frame(moal_private *priv,
LEAVE();
return -EFAULT;
}
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
skb_put(skb, IEEE80211_MIN_ACTION_SIZE(tdls_discover_resp) - 24);
mgmt->u.action.category = WLAN_CATEGORY_PUBLIC;
mgmt->u.action.action_code = WLAN_PUB_ACTION_TDLS_DISCOVER_RES;
mgmt->u.action.tdls_discover_resp.dialog_token = dialog_token;
mgmt->u.action.tdls_discover_resp.capability = cpu_to_le16(capability);
/* move back for addr4 */
memmove(pos + ETH_ALEN, &mgmt->u.action,
IEEE80211_MIN_ACTION_SIZE(tdls_discover_resp) - 24);
#else
skb_put(skb, 1 + sizeof(mgmt->u.action.u.tdls_discover_resp));
mgmt->u.action.category = WLAN_CATEGORY_PUBLIC;
mgmt->u.action.u.tdls_discover_resp.action_code =
@ -9454,6 +9506,7 @@ static int woal_construct_tdls_action_frame(moal_private *priv,
/* move back for addr4 */
memmove(pos + ETH_ALEN, &mgmt->u.action,
1 + sizeof(mgmt->u.action.u.tdls_discover_resp));
#endif
/** init address 4 */
moal_memcpy_ext(priv->phandle, pos, addr, ETH_ALEN, ETH_ALEN);
@ -10205,7 +10258,11 @@ done:
* @return 0 -- success, otherwise fail
*/
static int woal_cfg80211_change_station(struct wiphy *wiphy,
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
const u8 *mac,
#else
@ -10215,7 +10272,11 @@ static int woal_cfg80211_change_station(struct wiphy *wiphy,
{
int ret = 0;
#ifdef UAP_SUPPORT
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
moal_private *priv = (moal_private *)woal_get_netdev_priv(wdev->netdev);
#else
moal_private *priv = (moal_private *)woal_get_netdev_priv(dev);
#endif
moal_private *vlan_priv = NULL;
station_node *sta_node = NULL;
int i = 0;
@ -10269,7 +10330,11 @@ static int woal_cfg80211_change_station(struct wiphy *wiphy,
* @return 0 -- success, otherwise fail
*/
static int woal_cfg80211_add_station(struct wiphy *wiphy,
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
const u8 *mac,
#else
@ -10277,7 +10342,11 @@ static int woal_cfg80211_add_station(struct wiphy *wiphy,
#endif
struct station_parameters *params)
{
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
moal_private *priv = (moal_private *)woal_get_netdev_priv(wdev->netdev);
#else
moal_private *priv = (moal_private *)woal_get_netdev_priv(dev);
#endif
int ret = 0;
station_node *sta_node = NULL;
@ -10296,13 +10365,21 @@ static int woal_cfg80211_add_station(struct wiphy *wiphy,
memset(sta_node, 0, sizeof(*sta_node));
moal_memcpy_ext(priv->phandle, sta_node->peer_mac, mac,
MLAN_MAC_ADDR_LENGTH, ETH_ALEN);
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
sta_node->netdev = wdev->netdev;
#else
sta_node->netdev = dev;
#endif
sta_node->aid = params->aid;
sta_node->is_valid = MFALSE;
/** AID should start from 1 to MAX_STA_COUNT */
priv->vlan_sta_list[(params->aid - 1) % MAX_STA_COUNT] =
sta_node;
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
ret = woal_cfg80211_uap_add_station(wiphy, wdev->netdev, mac, params);
#else
ret = woal_cfg80211_uap_add_station(wiphy, dev, mac, params);
#endif
LEAVE();
return ret;
}
@ -11290,7 +11367,11 @@ int woal_cfg80211_uap_add_station(struct wiphy *wiphy, struct net_device *dev,
sinfo = kzalloc(sizeof(struct station_info), GFP_KERNEL);
if (sinfo) {
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
cfg80211_new_sta(dev->ieee80211_ptr, mac, sinfo, GFP_KERNEL);
#else
cfg80211_new_sta(dev, mac, sinfo, GFP_KERNEL);
#endif
kfree(sinfo);
}
}

View file

@ -582,7 +582,10 @@ static int woal_deauth_assoc_station(moal_private *priv, const u8 *mac_addr,
LEAVE();
return -EINVAL;
}
#if KERNEL_VERSION(3, 8, 0) <= CFG80211_VERSION_CODE
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
if (moal_extflg_isset(priv->phandle, EXT_HOST_MLME))
cfg80211_del_sta(priv->netdev->ieee80211_ptr, mac_addr, GFP_KERNEL);
#elif KERNEL_VERSION(3, 8, 0) <= CFG80211_VERSION_CODE
if (moal_extflg_isset(priv->phandle, EXT_HOST_MLME))
cfg80211_del_sta(priv->netdev, mac_addr, GFP_KERNEL);
#endif
@ -4288,7 +4291,12 @@ done:
* @return 0 -- success, otherwise fail
*/
#endif
int woal_cfg80211_del_station(struct wiphy *wiphy, struct net_device *dev,
int woal_cfg80211_del_station(struct wiphy *wiphy,
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
struct wireless_dev *wdev,
#else
struct net_device *dev,
#endif
#if CFG80211_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
struct station_del_parameters *param)
#else
@ -4303,7 +4311,11 @@ int woal_cfg80211_del_station(struct wiphy *wiphy, struct net_device *dev,
const u8 *mac_addr = NULL;
#endif
u16 reason_code = REASON_CODE_DEAUTH_LEAVING;
#if KERNEL_VERSION(7, 0, 0) <= CFG80211_VERSION_CODE
moal_private *priv = (moal_private *)woal_get_netdev_priv(wdev->netdev);
#else
moal_private *priv = (moal_private *)woal_get_netdev_priv(dev);
#endif
#ifdef UAP_SUPPORT
#if defined(UAP_CFG80211) || defined(STA_CFG80211)
int i;