Staging: rt2870: add Antenna Diversity support
[firefly-linux-kernel-4.4.55.git] / drivers / staging / rt2860 / rt_profile.c
index 3df85cff4ec48f588eaf2490645ee7a5b7ee3c56..3bc41f83f624ce0a2d176d08b3eb4fd86f9e5ae4 100644 (file)
@@ -1429,23 +1429,6 @@ NDIS_STATUS      RTMPReadParametersHook(
                                                                DBGPRINT(RT_DEBUG_TRACE, ("TGnWifiTest=%d\n", pAd->StaCfg.bTGnWifiTest));
                                                }
                                        }
-
-#ifdef RT30xx
-                                               {
-                                                       if(RTMPGetKeyParameter("AntDiversity", tmpbuf, 10, buffer))
-                                                       {
-                                                               for (i = 0, macptr = rstrtok(tmpbuf,";"); macptr; macptr = rstrtok(NULL,";"), i++)
-                                                               {
-                                                                       if(simple_strtol(macptr, 0, 10) != 0)  //Enable
-                                                                               pAd->CommonCfg.bRxAntDiversity = TRUE;
-                                                                       else //Disable
-                                                                               pAd->CommonCfg.bRxAntDiversity = FALSE;
-
-                                                                       DBGPRINT(RT_DEBUG_ERROR, ("AntDiversity=%d\n", pAd->CommonCfg.bRxAntDiversity));
-                                                               }
-                                                       }
-                                               }
-#endif // RT30xx //
                                }
                        }
                        else