@HLEFunction(nid=0x81AEE1BE,version=150) public int sceNetAdhocctlGetScanInfo(TPointer32 sizeAddr,@CanBeNull TPointer buf){
  checkInitialized();
  final int scanInfoSize=28;
  int size=sizeAddr.getValue();
  sizeAddr.setValue(scanInfoSize * networks.size());
  if (log.isDebugEnabled()) {
    log.debug(String.format("sceNetAdhocctlGetScanInfo returning size=%d",sizeAddr.getValue()));
  }
  if (buf.isNotNull()) {
    int offset=0;
    for (    AdhocctlNetwork network : networks) {
      if (offset + scanInfoSize > size || network == null) {
        break;
      }
      if (log.isDebugEnabled()) {
        log.debug(String.format("sceNetAdhocctlGetScanInfo returning %s at 0x%08X",network,buf.getAddress() + offset));
      }
      offset+=4;
      buf.setValue32(offset,network.channel);
      offset+=4;
      buf.setStringNZ(offset,GROUP_NAME_LENGTH,network.name);
      offset+=GROUP_NAME_LENGTH;
      buf.setStringNZ(offset,IBSS_NAME_LENGTH,network.bssid);
      offset+=IBSS_NAME_LENGTH;
      buf.setValue16(offset,(short)0);
      offset+=2;
      buf.setValue32(offset,network.mode);
      offset+=4;
    }
    fillNextPointersInLinkedList(buf,offset,scanInfoSize);
  }
  return 0;
}

@ HLEFunction ( nid = 0x81AEE1BE , version = 150 ) public int sceNetAdhocctlGetScanInfo ( TPointer32 sizeAddr , @ CanBeNull TPointer buf ) { checkInitialized ( ) ; final int scanInfoSize = 28 ; int size = sizeAddr . getValue ( ) ; sizeAddr . setValue ( scanInfoSize * networks . size ( ) ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( String . format ( "sceNetAdhocctlGetScanInfo returning size=%d" , sizeAddr . getValue ( ) ) ) ; } if ( buf . isNotNull ( ) ) { int offset = 0 ; for ( AdhocctlNetwork network : networks ) { if ( offset + scanInfoSize > size || network == null ) { break ; } if ( log . isDebugEnabled ( ) ) { log . debug ( String . format ( "sceNetAdhocctlGetScanInfo returning %s at 0x%08X" , network , buf . getAddress ( ) + offset ) ) ; } offset += 4 ; buf . setValue32 ( offset , network . channel ) ; offset += 4 ; buf . setStringNZ ( offset , GROUP_NAME_LENGTH , network . name ) ; offset += GROUP_NAME_LENGTH ; buf . setStringNZ ( offset , IBSS_NAME_LENGTH , network . bssid ) ; offset += IBSS_NAME_LENGTH ; buf . setValue16 ( offset , ( short ) 0 ) ; offset += 2 ; buf . setValue32 ( offset , network . mode ) ; offset += 4 ; } fillNextPointersInLinkedList ( buf , offset , scanInfoSize ) ; } return 0 ; }
get the results of a scan
