
wrq.u.data.pointer = data;
wrq.u.data.flags =
OID_GEN_RCV_NO_BUFFER
;
ioctl(socket_id,
RT_PRIV_IOCTL
, &wrq);
RT_OID_802_11_PHY_MODE
typedef enum _RT_802_11_PHY_MODE {
PHY_11BG_MIXED = 0,
PHY_11B,
PHY_11A,
PHY_11ABG_MIXED,
PHY_11G,
PHY_11ABGN_MIXED,
// both band 5
PHY_11N,
// 6
PHY_11GN_MIXED,
// 2.4G band 7
PHY_11AN_MIXED,
// 5G band 8
PHY_11BGN_MIXED,
// if check 802.11b. 9
PHY_11AGN_MIXED,
// if check 802.11b. 10
} RT_802_11_PHY_MODE
sprintf(name, "ra0");
strcpy(wrq.ifr_name, name);
memset(data, 0, sizeof(ulInfo));
wrq.u.data.length = sizeof(ulInfo);
wrq.u.data.pointer = data;
wrq.u.data.flags =
RT_OID_802_11_PHY_MODE
;
ioctl(socket_id,
RT_PRIV_IOCTL
, &wrq);
RT_OID_802_11_STA_CONFIG
sprintf(name, "ra0");
strcpy(wrq.ifr_name, name);
memset(data, 0, sizeof(RT_802_11_STA_CONFIG));
wrq.u.data.length = sizeof(RT_802_11_STA_CONFIG);
wrq.u.data.pointer = data;
wrq.u.data.flags =
RT_OID_802_11_STA_CONFIG
;
ioctl(socket_id,
RT_PRIV_IOCTL
, &wrq);
OID_802_11_RTS_THRESHOLD
sprintf(name, "ra0");
63/75