Skip to content

Commit

Permalink
Staging: rt28x0: MlmeAssocReqAction() fixes for wpa_supplicant support
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 7e51472 commit a0f2906
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/staging/rt2860/sta/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,7 @@ VOID MlmeAssocReqAction(
RSNIe = IE_WPA2;
}

#ifdef RT30xx
if (pAd->StaCfg.WpaSupplicantUP != 1)
#endif
RTMPMakeRSNIE(pAd, pAd->StaCfg.AuthMode, pAd->StaCfg.WepStatus, BSS0);

// Check for WPA PMK cache list
Expand All @@ -483,15 +481,13 @@ VOID MlmeAssocReqAction(
}
}

#ifdef RT30xx
if (pAd->StaCfg.WpaSupplicantUP == 1)
{
MakeOutgoingFrame(pOutBuffer + FrameLen, &tmp,
pAd->StaCfg.RSNIE_Len, pAd->StaCfg.RSN_IE,
END_OF_ARGS);
}
else
#endif
{
MakeOutgoingFrame(pOutBuffer + FrameLen, &tmp,
1, &RSNIe,
Expand All @@ -502,9 +498,7 @@ VOID MlmeAssocReqAction(

FrameLen += tmp;

#ifdef RT30xx
if (pAd->StaCfg.WpaSupplicantUP != 1)
#endif
{
// Append Variable IE
NdisMoveMemory(pAd->StaCfg.ReqVarIEs + VarIesOffset, &RSNIe, 1);
Expand Down

0 comments on commit a0f2906

Please sign in to comment.