@@ -402,30 +402,6 @@ static jint android_net_wifi_getRssiHelper(const char *cmd)
402402 return (jint)rssi;
403403}
404404
405- static jint android_net_wifi_getRssiCommand (JNIEnv* env, jobject)
406- {
407- return android_net_wifi_getRssiHelper (" DRIVER RSSI" );
408- }
409-
410- static jint android_net_wifi_getRssiApproxCommand (JNIEnv* env, jobject)
411- {
412- return android_net_wifi_getRssiHelper (" DRIVER RSSI-APPROX" );
413- }
414-
415- static jint android_net_wifi_getLinkSpeedCommand (JNIEnv* env, jobject)
416- {
417- char reply[BUF_SIZE];
418- int linkspeed;
419-
420- if (doCommand (" DRIVER LINKSPEED" , reply, sizeof (reply)) != 0 ) {
421- return (jint)-1 ;
422- }
423- // reply comes back in the form "LinkSpeed XX" where XX is the
424- // number we're interested in.
425- sscanf (reply, " %*s %u" , &linkspeed);
426- return (jint)linkspeed;
427- }
428-
429405static jstring android_net_wifi_getMacAddressCommand (JNIEnv* env, jobject)
430406{
431407 char reply[BUF_SIZE];
@@ -625,10 +601,6 @@ static JNINativeMethod gWifiMethods[] = {
625601 (void *) android_net_wifi_setBluetoothCoexistenceModeCommand },
626602 { " setBluetoothCoexistenceScanModeCommand" , " (Z)Z" ,
627603 (void *) android_net_wifi_setBluetoothCoexistenceScanModeCommand },
628- { " getRssiCommand" , " ()I" , (void *) android_net_wifi_getRssiCommand },
629- { " getRssiApproxCommand" , " ()I" ,
630- (void *) android_net_wifi_getRssiApproxCommand},
631- { " getLinkSpeedCommand" , " ()I" , (void *) android_net_wifi_getLinkSpeedCommand },
632604 { " getMacAddressCommand" , " ()Ljava/lang/String;" , (void *) android_net_wifi_getMacAddressCommand },
633605 { " saveConfigCommand" , " ()Z" , (void *) android_net_wifi_saveConfigCommand },
634606 { " reloadConfigCommand" , " ()Z" , (void *) android_net_wifi_reloadConfigCommand },
0 commit comments