Added copy of mac address to bssid (DOH!). Put the read/write of pcfinfo

back in, it's just not fatal if it fails.
This commit is contained in:
mark 2000-02-05 06:43:32 +00:00
parent 7068ddc1ff
commit 8130df532a
1 changed files with 10 additions and 6 deletions

View File

@ -1367,13 +1367,13 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp)
result = -1;
goto failed;
}
#if 0
/* read the PCFInfo and update */
result = hfa384x_drvr_getconfig(hw, HFA384x_RID_CNFAPPCFINFO,
pcfinfo, HFA384x_RID_CNFAPPCFINFO_LEN);
if ( result ) {
WLAN_LOG_DEBUG0(1, "Unable to read pcfinfo.\n");
goto failed;
WLAN_LOG_DEBUG0(1, "Unable to read pcfinfo, not supported so skip it.\n");
goto ibss_skip;
}
if ((msg->cfpollable.data == P80211ENUM_truth_false ||
msg->cfpollreq.data == P80211ENUM_truth_false) ) {
@ -1409,10 +1409,10 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp)
result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFAPPCFINFO,
pcfinfo, HFA384x_RID_CNFAPPCFINFO_LEN);
if ( result ) {
WLAN_LOG_DEBUG0(1, "Unable to write pcfinfo.\n");
goto failed;
WLAN_LOG_DEBUG0(1, "Unable to write pcfinfo, not supported so skip it.\n");
/* goto failed; */
}
#endif
ibss_skip:
/* Enable the interrupts */
@ -1425,10 +1425,14 @@ ibss_skip:
outw( 0xffff, HFA384x_EVSTAT(priv->hw->iobase));
outw( word, HFA384x_INTEN(hw->iobase));
/* Set the macmode so the frame setup code knows what to do */
if ( msg->bsstype.data == P80211ENUM_bsstype_infrastructure ) {
wlandev->macmode = WLAN_MACMODE_ESS_AP;
}
/* Set the BSSID to the same as our MAC */
memcpy( wlandev->bssid, wlandev->netdev->dev_addr, WLAN_BSSID_LEN);
/* Enable the Port */
result = hfa384x_cmd_enable(hw, 0);
if ( result ) {