More cleanups and fixes from Pavel Roskin.

This commit is contained in:
solomon 2002-11-11 15:37:35 +00:00
parent 5fa5ee9231
commit 419b138e5a
3 changed files with 17 additions and 4 deletions

View file

@ -351,8 +351,13 @@ static int p80211wext_giwessid(netdevice_t *dev,
DBFENTER;
memset(&msg, 0, sizeof(msg));
memset(&pstr, 0, sizeof(pstr));
msg.msgcode = DIDmsg_dot11req_mibget;
pstr.did = DIDmib_dot11smt_dot11StationConfigTable_dot11DesiredSSID;
if (wlandev->macmode == WLAN_MACMODE_ESS_AP)
pstr.did = DIDmib_p2_p2Static_p2CnfOwnSSID;
else
pstr.did = DIDmib_dot11smt_dot11StationConfigTable_dot11DesiredSSID;
memcpy(&msg.mibattribute.data, &pstr, sizeof(pstr));
result = p80211req_dorequest(wlandev, (UINT8*)&msg);
@ -368,8 +373,6 @@ static int p80211wext_giwessid(netdevice_t *dev,
data->length = pstr.data.len;
memcpy(essid, pstr.data.data, pstr.data.len);
// XXXX need to handle the AP case as well...
exit:
DBFEXIT;
return err;

View file

@ -1512,6 +1512,11 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp)
}
/* ibssatimwindow */
if (msg->ibssatimwindow.status == P80211ENUM_msgitem_status_data_ok) {
WLAN_LOG_INFO0("prism2mgmt_start: atimwindow not used in "
"Infrastructure mode, ignored.\n");
}
WLAN_LOG_INFO0("atimwindow not used in Infrastructure mode, ignored.\n");
/* DTIM period */
@ -1523,7 +1528,10 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp)
}
/* probedelay */
WLAN_LOG_INFO0("prism2mgmt_start: probedelay not supported in prism2, ignored.\n");
if (msg->probedelay.status == P80211ENUM_msgitem_status_data_ok) {
WLAN_LOG_INFO0("prism2mgmt_start: probedelay not "
"supported in prism2, ignored.\n");
}
/* cfpollable, cfpollreq, cfpperiod, cfpmaxduration */
if (msg->cfpollable.data == P80211ENUM_truth_true &&

View file

@ -1113,6 +1113,8 @@ int prism2sta_mlmerequest(wlandevice_t *wlandev, p80211msg_t *msg)
result = prism2mgmt_enable(wlandev, msg);
break;
case DIDmsg_lnxreq_commsquality: {
if (priv->ap)
break;
p80211msg_lnxreq_commsquality_t *qualmsg;
hfa384x_commsquality_t qual;
WLAN_LOG_DEBUG0(2,"Received commsquality request\n");