type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
functions | int dns_stream_update_io(DnsStream *s) {
int f = 0;
assert(s);
if (s->write_packet && s->n_written < sizeof(s->write_size) + s->write_packet->size)
f |= EPOLLOUT;
else if (!ordered_set_isempty(s->write_queue)) {
dns_packet_unref(s->write_packet);
... |
functions | int dns_stream_complete(DnsStream *s, int error) {
_cleanup_(dns_stream_unrefp) _unused_ DnsStream *ref = dns_stream_ref(s); /* Protect stream while we process it */
assert(s);
assert(error >= 0);
/* Error is > 0 when the connection failed for some reason in the network stack. It's == ... |
functions | int dns_stream_identify(DnsStream *s) {
CMSG_BUFFER_TYPE(CMSG_SPACE(MAXSIZE(struct in_pktinfo, struct in6_pktinfo))
+ CMSG_SPACE(int) + /* for the TTL */
+ EXTRA_CMSG_SPACE /* kernel appears to require extra space */) control;
struct msghdr mh = {} |
functions | else if (s->peer.sa.sa_family == AF_INET6) {
r = getsockopt(s->fd, IPPROTO_IPV6, IPV6_2292PKTOPTIONS, &control, &sl);
if (r < 0)
return -errno;
} |
functions | else if (cmsg->cmsg_level == IPPROTO_IP) {
assert(s->peer.sa.sa_family == AF_INET);
switch (cmsg->cmsg_type) {
case IP_PKTINFO: {
struct in_pktinfo *i = (struct in_pktinfo*) CMSG_DATA(cmsg);
... |
functions | ssize_t dns_stream_writev(DnsStream *s, const struct iovec *iov, size_t iovcnt, int flags) {
ssize_t m;
assert(s);
assert(iov);
#if ENABLE_DNS_OVER_TLS
if (s->encrypted && !(flags & DNS_STREAM_WRITE_TLS_DATA)) {
ssize_t ss;
size_t i;
m =... |
functions | endif
if (s->tfo_salen > 0) {
struct msghdr hdr = {
.msg_iov = (struct iovec*) iov,
.msg_iovlen = iovcnt,
.msg_name = &s->tfo_address.sa,
.msg_namelen = s->tfo_salen
} |
functions | ssize_t dns_stream_read(DnsStream *s, void *buf, size_t count) {
ssize_t ss;
#if ENABLE_DNS_OVER_TLS
if (s->encrypted)
ss = dnstls_stream_read(s, buf, count);
else
#endif
{
ss = read(s->fd, buf, count);
if (ss < 0)
... |
functions | int on_stream_timeout(sd_event_source *es, usec_t usec, void *userdata) {
DnsStream *s = userdata;
assert(s);
return dns_stream_complete(s, ETIMEDOUT);
} |
functions | int on_stream_io(sd_event_source *es, int fd, uint32_t revents, void *userdata) {
_cleanup_(dns_stream_unrefp) DnsStream *s = dns_stream_ref(userdata); /* Protect stream while we process it */
bool progressed = false;
int r;
assert(s);
#if ENABLE_DNS_OVER_TLS
if (s->encrypted) ... |
functions | int dns_stream_new(
Manager *m,
DnsStream **ret,
DnsStreamType type,
DnsProtocol protocol,
int fd,
const union sockaddr_union *tfo_address) {
_cleanup_(dns_stream_unrefp) DnsStream *s = NULL;
int r;
... |
functions | int dns_stream_write_packet(DnsStream *s, DnsPacket *p) {
int r;
assert(s);
assert(p);
r = ordered_set_put(s->write_queue, p);
if (r < 0)
return r;
dns_packet_ref(p);
return dns_stream_update_io(s);
} |
functions | void dns_stream_detach(DnsStream *s) {
assert(s);
if (!s->server)
return;
if (s->server->stream != s)
return;
dns_server_unref_stream(s->server);
} |
includes |
#include <linux/init.h> |
includes | #include <linux/module.h> |
includes | #include <linux/moduleparam.h> |
includes |
#include <linux/kernel.h> |
includes | #include <linux/pci.h> |
includes | #include <linux/slab.h> |
includes | #include <linux/smp.h> |
includes | #include <linux/smp_lock.h> |
defines |
#define MY_NAME "acpiphp" |
defines |
#define DRIVER_VERSION "0.4" |
defines | #define DRIVER_AUTHOR "Greg Kroah-Hartman <gregkh@us.ibm.com>, Takayoshi Kochi <t-kochi@bq.jp.nec.com>" |
defines | #define DRIVER_DESC "ACPI Hot Plug PCI Controller Driver" |
functions | int enable_slot(struct hotplug_slot *hotplug_slot)
{
struct slot *slot = hotplug_slot->private;
dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
/* enable the specified slot */
return acpiphp_enable_slot(slot->acpi_slot);
} |
functions | int disable_slot(struct hotplug_slot *hotplug_slot)
{
struct slot *slot = hotplug_slot->private;
dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
/* disable the specified slot */
return acpiphp_disable_slot(slot->acpi_slot);
} |
functions | int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status)
{
dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
switch (status) {
case 0:
/* FIXME turn light off */
hotplug_slot->info->attention_status = 0;
break;
case 1:
default:
/* FIXME turn light on */
hotplug_s... |
functions | int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value)
{
struct slot *slot = hotplug_slot->private;
dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
*value = acpiphp_get_power_status(slot->acpi_slot);
return 0;
} |
functions | int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value)
{
struct slot *slot = hotplug_slot->private;
dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
*value = acpiphp_get_latch_status(slot->acpi_slot);
return 0;
} |
functions | int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value)
{
struct slot *slot = hotplug_slot->private;
dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
*value = acpiphp_get_adapter_status(slot->acpi_slot);
return 0;
} |
functions | int get_address(struct hotplug_slot *hotplug_slot, u32 *value)
{
struct slot *slot = hotplug_slot->private;
dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
*value = acpiphp_get_address(slot->acpi_slot);
return 0;
} |
functions | __init init_acpi(void)
{
int retval;
/* initialize internal data structure etc. */
retval = acpiphp_glue_init();
/* read initial number of slots */
if (!retval) {
num_slots = acpiphp_get_num_slots();
if (num_slots == 0)
retval = -ENODEV;
} |
functions | void make_slot_name(struct slot *slot)
{
snprintf(slot->hotplug_slot->name, SLOT_NAME_SIZE, "%u",
slot->acpi_slot->sun);
} |
functions | void release_slot(struct hotplug_slot *hotplug_slot)
{
struct slot *slot = hotplug_slot->private;
dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name);
kfree(slot->hotplug_slot->info);
kfree(slot->hotplug_slot->name);
kfree(slot->hotplug_slot);
kfree(slot);
} |
functions | __init init_slots(void)
{
struct slot *slot;
int retval = -ENOMEM;
int i;
for (i = 0; i < num_slots; ++i) {
slot = kmalloc(sizeof(struct slot), GFP_KERNEL);
if (!slot)
goto error;
memset(slot, 0, sizeof(struct slot));
slot->hotplug_slot = kmalloc(sizeof(struct hotplug_slot), GFP_KERNEL);
if (!slot->h... |
functions | __exit cleanup_slots (void)
{
struct list_head *tmp, *n;
struct slot *slot;
list_for_each_safe (tmp, n, &slot_list) {
/* memory will be freed in release_slot callback */
slot = list_entry(tmp, struct slot, slot_list);
list_del(&slot->slot_list);
pci_hp_deregister(slot->hotplug_slot);
} |
functions | __init acpiphp_init(void)
{
int retval;
info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
acpiphp_debug = debug;
/* read all the ACPI info from the system */
retval = init_acpi();
if (retval)
return retval;
return init_slots();
} |
functions | __exit acpiphp_exit(void)
{
cleanup_slots();
/* deallocate internal data structures etc. */
acpiphp_glue_exit();
} |
functions | qboolean G_SpawnString( const char *key, const char *defaultString, char **out ) {
int i;
if ( !level.spawning ) {
*out = (char *)defaultString;
// G_Error( "G_SpawnString() called while not spawning" );
} |
functions | qboolean G_SpawnFloat( const char *key, const char *defaultString, float *out ) {
char *s;
qboolean present;
present = G_SpawnString( key, defaultString, &s );
*out = atof( s );
return present;
} |
functions | qboolean G_SpawnInt( const char *key, const char *defaultString, int *out ) {
char *s;
qboolean present;
present = G_SpawnString( key, defaultString, &s );
*out = atoi( s );
return present;
} |
functions | qboolean G_SpawnVector( const char *key, const char *defaultString, float *out ) {
char *s;
qboolean present;
present = G_SpawnString( key, defaultString, &s );
sscanf( s, "%f %f %f", &out[0], &out[1], &out[2] );
return present;
} |
functions | int L_SpawnString(lua_State *L) {
char *out;
qboolean present = qfalse;
luaL_checkstring(L,1);
luaL_checkstring(L,2);
if(qlua_allowSpawnString) {
present = G_SpawnString(lua_tostring(L,1),lua_tostring(L,2),&out);
lua_pushstring(L,out);
lua_pushboolean(L,present);
return 2;
} |
functions | int L_KillBox(lua_State *L) {
gentity_t *ent = lua_toentity(L,1);
if(ent == NULL) return 0;
qlua_UnlinkEntity(ent);
G_KillBox(ent);
qlua_LinkEntity(ent);
return 0;
} |
functions | void G_InitSpawnLua(lua_State *L) {
lua_pushcfunction(L,L_SpawnString);
lua_setglobal(L,"G_SpawnString");
lua_pushcfunction(L,L_KillBox);
lua_setglobal(L,"G_KillBox");
} |
functions | void SP_item_botroam( gentity_t *ent ) {} |
functions | qboolean G_CallSpawn( gentity_t *ent, qboolean lua ) {
spawn_t *s;
gitem_t *item;
int i = 0;
lua_State *L;
if ( !ent->classname ) {
G_Printf ("G_CallSpawn: NULL classname\n");
return qfalse;
} |
functions | functions
for ( item=bg_itemlist+1 ; item->classname ; item++ ) {
if ( !strcmp(item->classname, ent->classname) ) {
if(lua) {
if(!ItemIsRegistered(item)) {
RegisterItem(item);
SaveRegisteredItems();
qlua_gethook(GetServerLuaState(),"ItemRegistered");
lua_pushinteger(GetServerLuaSta... |
functions | functions
for ( s=spawns ; s->name ; s++ ) {
if ( !strcmp(s->name, ent->classname) ) {
// found it
s->spawn(ent);
return qtrue;
} |
functions | linefeed
for ( i=0 ; i< l ; i++ ) {
if (string[i] == '\\' && i < l-1) {
i++;
if (string[i] == 'n') {
*new_p++ = '\n';
} |
functions | void G_ParseField( const char *key, const char *value, gentity_t *ent ) {
field_t *f;
byte *b;
float v;
vec3_t vec;
for ( f=fields ; f->name ; f++ ) {
if ( !Q_stricmp(f->name, key) ) {
// found it
b = (byte *)ent;
switch( f->type ) {
case F_LSTRING:
*(char **)(b+f->ofs) = G_NewStri... |
functions | void G_SpawnGEntityFromSpawnVars( void ) {
int i;
gentity_t *ent;
char *s, *value, *gametypeName;
static char *gametypeNames[] = {"ffa", "tournament", "single", "team", "ctf", "oneflag", "obelisk", "harvester", "teamtournament"} |
functions | flag
if ( g_gametype.integer == GT_SINGLE_PLAYER ) {
G_SpawnInt( "notsingle", "0", &i );
if ( i ) {
G_FreeEntity( ent );
return;
} |
functions | qboolean G_ParseSpawnVars( void ) {
char keyname[MAX_TOKEN_CHARS];
char com_token[MAX_TOKEN_CHARS];
level.numSpawnVars = 0;
level.numSpawnVarChars = 0;
// parse the opening brace
if ( !trap_GetEntityToken( com_token, sizeof( com_token ) ) ) {
// end of spawn string
return qfalse;
} |
functions | pairs
while ( 1 ) {
// parse key
if ( !trap_GetEntityToken( keyname, sizeof( keyname ) ) ) {
G_Error( "G_ParseSpawnVars: EOF without closing brace" );
} |
functions | void SP_worldspawn( void ) {
char *s;
G_SpawnString( "classname", "", &s );
if ( Q_stricmp( s, "worldspawn" ) ) {
G_Error( "SP_worldspawn: The first entity isn't 'worldspawn'" );
} |
functions | else if ( g_doWarmup.integer ) { // Turn it on
level.warmupTime = -1;
trap_SetConfigstring( CS_WARMUP, va("%i", level.warmupTime) );
G_LogPrintf( "Warmup:\n" );
} |
functions | void G_SpawnEntitiesFromString( void ) {
// allow calls to G_Spawn*()
level.spawning = qtrue;
level.numSpawnVars = 0;
// the worldspawn is not an actual entity, but it still
// has a "spawn" function to perform any global setup
// needed by a level (setting configstrings or cvars, etc)
if ( !G_ParseSpaw... |
includes |
#include <stdio.h> |
functions | void m_etcomplete(M_NOPAR)
{
if (! m_scanel) {
M_WCHAR *wc_etago, *wc_tagc;
wc_etago = MakeWideCharString(m_etago);
wc_tagc = MakeWideCharString(m_tagc);
m_err3("%s%s%s ignored: element undefined", wc_etago, m_name, wc_tagc) ;
m_free(wc_etago,"multi-byte string");
m_free(wc_t... |
functions | void m_frcstart(M_NOPAR)
{
m_push(m_scanel, m_element[m_scanel - 1].start, m_scannet) ;
if (m_scannet) m_netlevel++ ;
m_stacktop->contextual = FALSE ;
m_stkparams() ;
if (m_element[m_scanel - 1].content == M_CDATA ||
m_element[m_scanel - 1].content == M_RCDATA) {
m_stacktop->intext =... |
functions | void m_holdproc(M_NOPAR)
{
if (m_stacktop->holdre) {
m_stacktop->holdre = FALSE ;
if (m_stacktop->intext) m_textaction(M_RE) ;
else {
m_strtcdata((int) M_RE) ;
if (m_curcon == NETDATACON) m_curcon = NETCDATA ;
else if (m_curcon == DATACON) m_curcon = POUNDCDATA ;
... |
functions | void m_stcomplete(M_NOPAR)
{
if (! m_scanel) return ;
if (m_strtproc(m_scanel))
m_stkparams() ;
else {
if (m_stacktop->holdre) m_holdproc() ;
/* M_strtproc should not return TRUE as long as #PCDATA is considered
optional, but this code should work if the standard is changed */
... |
functions | else if (! m_start) {
M_WCHAR *wc_stago, *wc_tagc;
wc_stago = MakeWideCharString(m_stago);
wc_tagc = MakeWideCharString(m_tagc);
m_err6("Expecting %s%s%s instead of %s%s%s to start document",
wc_stago,
m_nameofelt(1),
wc_tagc,
wc_stago,
m_nameofelt(m_scanel),
... |
includes |
#include <gnumeric-config.h> |
includes | #include <glib/gi18n-lib.h> |
includes | #include <goffice/goffice.h> |
includes | #include <gsf/gsf-impl-utils.h> |
includes | #include <string.h> |
functions | gboolean
autocorrect_first_letter_exception (const char *start, const char *end)
{
GSList *l = gnm_conf_get_autocorrect_first_letter_list ();
char *text;
if (l == NULL)
return FALSE;
text = g_strndup (start, end - start + 1);
for (; l != NULL; l = l->next) {
if (g_str_has_suffix(text, l->data)) {
g_free ... |
functions | gboolean
autocorrect_first_letter_trigger (gunichar this_char)
{
if (!g_unichar_ispunct (this_char))
return FALSE;
return (
this_char == 0x0021 ||
this_char == 0x002e ||
this_char == 0x003f ||
this_char == 0x037e ||
this_char == 0x0589 ||
this_char == 0x061f ||
this_char == 0x0700 ||
this_char == 0... |
defines |
#define __FILE_ID__ FILE_ID_9
|
functions | TI_UINT32 reminder64( TI_UINT64 dividee, TI_UINT32 divider )
{
TI_UINT32 divideeHigh, divideeLow, partA, partB, mod28n, mod24n, mod16n, partA8n, mod8n, mod4n;
divideeHigh = INT64_HIGHER( dividee );
divideeLow = INT64_LOWER( dividee );
mod8n = 256 % divider;
mod4n = 16 % divider;
par... |
functions | void scanMngr_setManualScanDefaultParams(TI_HANDLE hScanMngr)
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
pScanMngr->manualScanParams.desiredSsid.len = 1; /* will be set by the scan concentrator */
pScanMngr->manualScanParams.scanType= SCAN_TYPE_NORMAL_ACTIVE;
pScanMngr->manualScanP... |
functions | void scanMngr_reportContinuousScanResults (TI_HANDLE hScanMngr, EScanCncnResultStatus resultStatus)
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
BssListEx_t BssListEx;
if (resultStatus == SCAN_CRS_SCAN_COMPLETE_OK)
{
BssListEx.pListOfAPs = scanMngr_getBSSList(hScanMngr);
... |
functions | void scanMngrFreeMem (TI_HANDLE hScanMngr)
{
scanMngr_t* pScanMngr = hScanMngr;
TI_UINT8 i;
/* free frame storage space */
for (i = 0; i < MAX_SIZE_OF_BSS_TRACK_LIST; i++)
{
if (pScanMngr->BSSList.BSSList[i].pBuffer)
{
os_memoryFree (pScanMngr->hOS, pScanMngr->... |
functions | void scanMngr_immedScanCB( TI_HANDLE hScanMngr, EScanCncnResultStatus resultStatus,
TScanFrameInfo* frameInfo, TI_UINT16 SPSStatus )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
TScanBandPolicy* aPolicy;
EScanCncnResultStatus nextResultStatus;
TRACE2( pScanMngr->... |
functions | TI_DBG
switch (pScanMngr->immedScanState)
{
case SCAN_ISS_G_BAND:
pScanMngr->stats.ImmediateGByStatus[ resultStatus ]++;
break;
case SCAN_ISS_A_BAND:
pScanMngr->stats.ImmediateAByStatus[ resultStatus ]++;
break;
default... |
functions | void scanMngr_contScanCB( TI_HANDLE hScanMngr, EScanCncnResultStatus resultStatus,
TScanFrameInfo* frameInfo, TI_UINT16 SPSStatus )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
TScanBandPolicy *aPolicy;
EScanCncnResultStatus nextResultStatus;
TRACE3( pScanMngr->hRe... |
functions | TI_DBG
if ( SCAN_TYPE_SPS == pScanMngr->scanParams.scanType )
{
int i;
/*update SPS channels attendant statistics */
for ( i = 0; i < pScanMngr->scanParams.numOfChannels; i++ )
{
if ( TI_FALSE == WAS_SPS_CHANNEL_ATTENDED( SPSStatus... |
functions | TI_DBG
switch ( pScanMngr->contScanState )
{
case SCAN_CSS_TRACKING_G_BAND:
pScanMngr->stats.TrackingGByStatus[ resultStatus ]++;
break;
case SCAN_CSS_TRACKING_A_BAND:
pScanMngr->stats.TrackingAByStatus[ resultStatus ]++;
break;
... |
functions | TI_DBG
switch ( pScanMngr->contScanState )
{
case SCAN_CSS_TRACKING_G_BAND:
pScanMngr->stats.TrackingGByStatus[ resultStatus ]++;
break;
case SCAN_CSS_TRACKING_A_BAND:
pScanMngr->stats.TrackingAByStatus[ resultStatus ]++;
break;
... |
functions | void scanMngr_setScanPolicy( TI_HANDLE hScanMngr, TScanPolicy* scanPolicy )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
TRACE1( pScanMngr->hReport, REPORT_SEVERITY_INFORMATION, "scanMngr_setScanPolicy called, hScanMngr=0x%x.\n", hScanMngr);
#ifdef SCAN_MNGR_DBG
scanMngrTracePrintScanPolicy( sca... |
functions | void scanMngrGetCurrentTsfDtimMibCB(TI_HANDLE hScanMngr, TI_STATUS status, TI_UINT8* CB_buf)
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
os_memoryCopy(pScanMngr->hOS, (TI_UINT8*)&(pScanMngr->currTsfDtimMib), CB_buf, sizeof(TTsfDtim));
/* set the current TSF and last beacon TSF and DTIM co... |
functions | void scanMngr_GetUpdatedTsfDtimMibForScan (TI_HANDLE hScanMngr, TI_BOOL bTwdInitOccured)
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
TTwdParamInfo param;
TI_STATUS reqStatus = TI_OK;
TRACE0( pScanMngr->hReport , REPORT_SEVERITY_INFORMATION, "\nscanMngr_GetUpdatedTsfDtimMibForScan called... |
functions | void scanMngrPerformContinuousScan( TI_HANDLE hScanMngr )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
TScanBandPolicy *gPolicy, *aPolicy;
EScanCncnResultStatus resultStatus;
paramInfo_t param;
#ifdef SCAN_MNGR_DBG
TRACE1( pScanMngr->hReport, REPORT_SEVERITY_INFORMATION, "scanMngrPer... |
functions | TI_DBG
if ( RADIO_BAND_2_4_GHZ == pScanMngr->statsLastDiscoveryBand )
{
pScanMngr->stats.DiscoveryGByStatus[ resultStatus ]++;
} |
functions | void scanMngrPerformAging( TI_HANDLE hScanMngr )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
TI_UINT8 BSSEntryIndex;
#ifdef SCAN_MNGR_DBG
TRACE0( pScanMngr->hReport, REPORT_SEVERITY_INFORMATION, "Performing Aging.\n");
#endif
/* It looks like it never happens. Anyway decided to check */
... |
functions | void scanMngrUpdateReceivedFrame( TI_HANDLE hScanMngr, TScanFrameInfo* frameInfo )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
int BSSListIndex, neighborAPIndex;
TScanBandPolicy* pBandPolicy;
/* It looks like it never happens. Anyway decided to check */
if ( frameInfo->band >= RADIO_BA... |
functions | void scanMngrInsertNewBSSToTrackingList( TI_HANDLE hScanMngr, TScanFrameInfo* frameInfo )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
#ifdef SCAN_SPS_USE_DRIFT_COMPENSATION
int i;
#endif
/* mark that a new AP was discovered (for discovery stage) */
pScanMngr->bNewBSSFound = TI_TRUE;
... |
functions | void scanMngrUpdateBSSInfo( TI_HANDLE hScanMngr, TI_UINT8 BSSListIndex, TScanFrameInfo* frameInfo )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
/* update AP data */
pScanMngr->BSSList.BSSList[ BSSListIndex ].lastRxHostTimestamp = os_timeStampMs( pScanMngr->hOS );
pScanMngr->BSSList.BSSList[... |
functions | TI_INT8 scanMngrGetTrackIndexByBssid( TI_HANDLE hScanMngr, TMacAddr* bssId )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
int i;
for ( i = 0; i < pScanMngr->BSSList.numOfEntries; i++ )
{
if (MAC_EQUAL(*bssId, pScanMngr->BSSList.BSSList[ i ].BSSID))
{
return i;
... |
functions | void scanMngrSetNextDiscoveryPart( TI_HANDLE hScanMngr )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
scan_discoveryPart_e nextDiscoveryPart, originalDiscoveryPart;
/* sanity check - if discovery part is not valid, restart from first discovery part */
if ( SCAN_SDP_NO_DISCOVERY <= pScanM... |
functions | TI_BOOL scanMngrIsDiscoveryValid( TI_HANDLE hScanMngr, scan_discoveryPart_e discoveryPart )
{
scanMngr_t* pScanMngr = (TI_HANDLE)hScanMngr;
TScanBandPolicy *gPolicy, *aPolicy;
gPolicy = scanMngrGetPolicyByBand( hScanMngr, RADIO_BAND_2_4_GHZ );
aPolicy = scanMngrGetPolicyByBand( hScanMngr, RADIO_B... |
functions | TI_BOOL scanMngrNeighborAPsAvailableForDiscovery( TI_HANDLE hScanMngr, ERadioBand band )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
int i;
/* loop on all neighbor APs of the given band */
for ( i = 0; i < pScanMngr->neighborAPsDiscoveryList[ band ].numOfEntries; i++ )
{
/* ... |
functions | void scanMngrBuildImmediateScanCommand( TI_HANDLE hScanMngr, TScanBandPolicy* bandPolicy, TI_BOOL bNeighborAPsOnly )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
int channelIndex;
paramInfo_t param;
TMacAddr broadcastAddress;
int i;
/* It looks like it never happens. Anyway decided... |
functions | void scanMngrBuildTrackScanCommand( TI_HANDLE hScanMngr, TScanBandPolicy* bandPolicy, ERadioBand band )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
int BSSListIndex;
paramInfo_t param;
TScanMethod* scanMethod;
TRACE0(pScanMngr->hReport , REPORT_SEVERITY_INFORMATION, "\n scanMngrBuildTr... |
functions | void scanMngrBuildDiscoveryScanCommand( TI_HANDLE hScanMngr )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
ERadioBand band;
TScanBandPolicy* bandPolicy;
/* find on which band to discover at current cycle */
if ( (SCAN_SDP_NEIGHBOR_G == pScanMngr->currentDiscoveryPart) ||
(SCAN... |
functions | void scanMngrBuildScanCommandHeader( TI_HANDLE hScanMngr, TScanMethod* scanMethod, ERadioBand band )
{
scanMngr_t* pScanMngr = (scanMngr_t*)hScanMngr;
/* set general scan parameters */
/* SSID is not set - scan concentrator will set it for the scan manager to current SSID */
pScanMngr->scanPara... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.