12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556 |
- <?xml version='1.0' encoding='iso-8859-1'?>
- <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
- <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
- <head>
- <title>
- MMECode.c
- </title>
- <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
- <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
- <meta name='author' content='cmaier@cmassoc.net'/>
- <meta name='robots' content='noindex,nofollow'/>
- <link href='toolkit.css' rel='stylesheet' type='text/css'/>
- </head>
- <body>
- <div class='headerlink'>
- [<a href='mme.c.html' title=' mme.c '>PREV</a>]
- [<a href='toolkit.html' title=' Index '>HOME</a>]
- [<a href='MMEMode.c.html' title=' MMEMode.c '>NEXT</a>]
- </div>
- <pre>
- /*====================================================================*
- *
- * Copyright (c) 2013 Qualcomm Atheros, Inc.
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, are permitted (subject to the limitations
- * in the disclaimer below) provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * * Neither the name of Qualcomm Atheros nor the names of
- * its contributors may be used to endorse or promote products
- * derived from this software without specific prior written
- * permission.
- *
- * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
- * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE
- * COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- *--------------------------------------------------------------------*/
- /*====================================================================*
- *
- * char const * MMECode (uint16_t MMTYPE, uint8_t MSTATUS)
- *
- * mme.h
- *
- * return text for a given message type and status code; search is
- * performed using two nested binary searches;
- *
- D
- * a given vendor specific status code may mean something different
- * for each message type; this table maps message types and codes to
- * strings; it is bulky but takes less space than many small tables;
- * define MMEPASSFAIL as 0 to suppress the table without disturbing
- * other code;
- *
- * the bootloader and firmware share some message types but return
- * different status codes for the same message type and error; two
- * MMEs in particular, VS_WR_MEM and VS_ST_MAC are normally used
- * only with the Bootloader and so we define SOFTLOADER as 1
- * causing Bootloader/Softloader codes to replace the firmware
- * codes;
- *
- *
- * Contributor(s):
- * Charles Maier <cmaier@qca.qualcomm.com>
- *
- *--------------------------------------------------------------------*/
- #ifndef MMECODE_SOURCE
- #define MMECODE_SOURCE
- #include <stdio.h>
- #include <stdint.h>
- #include "../mme/mme.h"
- #include "../tools/symbol.h"
- #include "../tools/endian.h"
- #ifndef MMEPASSFAIL
- static struct mme_code
- {
- uint16_t type;
- uint8_t code;
- char const * text;
- }
- mme_codes [] =
- {
- {
- 0x8005,
- 0x01,
- "Read Stopped"
- },
- {
- 0x8005,
- 0x03,
- "Stopped with Valid Read"
- },
- {
- 0x8005,
- 0x05,
- "Reached End"
- },
- {
- 0x8005,
- 0x07,
- "Stopped, Valid Read, Reached End - All Done! Go Away!"
- },
- {
- 0x8005,
- 0x80,
- "Invalid Index"
- },
- {
- 0x8005,
- 0x81,
- "Invalid Word Count"
- },
- {
- 0x8005,
- 0x82,
- "No Stop Before Read"
- },
- {
- 0x8005,
- 0x83,
- "Invalid MME"
- },
- #ifdef SOFTLOADER
- {
- 0xA005,
- 0x14,
- "Bad Checksum"
- },
- {
- 0xA005,
- 0x1C,
- "Bad Length"
- },
- {
- 0xA005,
- 0x38,
- "Bad Address"
- },
- {
- 0xA005,
- 0x3C,
- "Bad Data Alignment"
- },
- #else
- {
- 0xA005,
- 0x10,
- "Bad Address"
- },
- {
- 0xA005,
- 0x14,
- "Bad Length"
- },
- #endif
- {
- 0xA009,
- 0x10,
- "Bad Offset"
- },
- {
- 0xA009,
- 0x14,
- "Bad Length"
- },
- {
- 0xA00D,
- 0x10,
- "Bad Module ID"
- },
- #ifdef SOFTLOADER
- {
- 0xA00D,
- 0x14,
- "Bad Image Checksum"
- },
- {
- 0xA00D,
- 0x1C,
- "Bad Image Length"
- },
- {
- 0xA00D,
- 0x38,
- "Bad Image Load Address"
- },
- {
- 0xA00D,
- 0x3C,
- "Bad Data Alignment"
- },
- {
- 0xA00D,
- 0x40,
- "Bad Start Address"
- },
- #else
- {
- 0xA00D,
- 0x38,
- "Bad Command"
- },
- {
- 0xA00D,
- 0x40,
- "Failed to Lock NVM"
- },
- #endif
- {
- 0xA011,
- 0x10,
- "No Flash Memory"
- },
- {
- 0xA01D,
- 0x01,
- "Device Failed to Reset"
- },
- {
- 0xA01D,
- 0x02,
- "Device is Busy"
- },
- {
- 0xA021,
- 0x10,
- "Bad Module"
- },
- {
- 0xA021,
- 0x12,
- "Bad Length"
- },
- {
- 0xA021,
- 0x14,
- "Bad Checksum"
- },
- {
- 0xA021,
- 0x20,
- "Bad Offset"
- },
- {
- 0xA021,
- 0x40,
- "Operation Blocked"
- },
- {
- 0xA021,
- 0x50,
- "Fail to lock NVM"
- },
- {
- 0xA025,
- 0x10,
- "Bad Module"
- },
- {
- 0xA025,
- 0x12,
- "Bad Length"
- },
- {
- 0xA025,
- 0x14,
- "Bad Checksum"
- },
- {
- 0xA025,
- 0x20,
- "Unexpected Offset"
- },
- {
- 0xA025,
- 0x50,
- "Fail to lock NVM"
- },
- {
- 0xA025,
- 0x58,
- "DAK Mismatch"
- },
- {
- 0xA029,
- 0x10,
- "Bad Module"
- },
- {
- 0xA029,
- 0x14,
- "No Flash Memory"
- },
- {
- 0xA029,
- 0x18,
- "Not enough NVRAM"
- },
- {
- 0xA029,
- 0x1C,
- "Bad Header Checksum"
- },
- {
- 0xA029,
- 0x20,
- "Bad Image Checksum"
- },
- {
- 0xA029,
- 0x24,
- "Bad PIB"
- },
- {
- 0xA029,
- 0x28,
- "Softloader Too Large"
- },
- {
- 0xA029,
- 0x2C,
- "Firmware Too Large"
- },
- {
- 0xA029,
- 0x42,
- "Firmware without PIB"
- },
- {
- 0xA029,
- 0x44,
- "Bad PIB Checksum"
- },
- {
- 0xA029,
- 0x46,
- "DAK Not Zero"
- },
- {
- 0xA029,
- 0x48,
- "MAC Mismatch"
- },
- {
- 0xA029,
- 0x50,
- "MFG HFID Mismatch"
- },
- {
- 0xA029,
- 0x52,
- "Bad Bind Factory Defaults"
- },
- {
- 0xA029,
- 0x54,
- "Bad Bind Template PIB"
- },
- {
- 0xA029,
- 0x56,
- "Bad Bind Working PIB"
- },
- {
- 0xA029,
- 0x58,
- "Error Computing PIB Checksum"
- },
- {
- 0xA029,
- 0x5A,
- "Bad Bind Scratch PIB"
- },
- {
- 0xA029,
- 0x5C,
- "No Firmware Version"
- },
- {
- 0xA029,
- 0x5E,
- "Version Mismatch"
- },
- {
- 0xA029,
- 0x60,
- "Bad 01PIB Checksum"
- },
- {
- 0xA029,
- 0x62,
- "Bad 02PIB Checksum"
- },
- {
- 0xA029,
- 0x64,
- "Bad WPIB Checksum"
- },
- {
- 0xA029,
- 0x66,
- "Illegal Firmware Revision"
- },
- {
- 0xA031,
- 0x01,
- "Bad Control"
- },
- {
- 0xA031,
- 0x02,
- "Bad Direction"
- },
- {
- 0xA031,
- 0x10,
- "Bad Link ID"
- },
- {
- 0xA031,
- 0x20,
- "Bad MAC Address"
- },
- {
- 0xA035,
- 0x10,
- "Bad Control"
- },
- {
- 0xA049,
- 0x20,
- "Invalid Duration"
- },
- {
- 0xA049,
- 0x12,
- "Invalid Length"
- },
- {
- 0xA049,
- 0x24,
- "Already Set"
- },
- {
- 0xA051,
- 0x10,
- "Bad PEKS"
- },
- {
- 0xA051,
- 0x11,
- "Bad PIB"
- },
- {
- 0xA051,
- 0x12,
- "Bad PEKS Encrypted Payload"
- },
- {
- 0xA051,
- 0x13,
- "Remote Failure"
- },
- {
- 0xA051,
- 0x14,
- "Bad Remote Response"
- },
- {
- 0xA051,
- 0x15,
- "Remote Decryption Failed"
- },
- {
- 0xA059,
- 0x10,
- "No Flash Memory"
- },
- {
- 0xA05D,
- 0x30,
- "Bad Checksum"
- },
- {
- 0xA05D,
- 0x34,
- "BIST Failed"
- },
- {
- 0xA065,
- 0x10,
- "No Flash Memory"
- },
- {
- 0xA069,
- 0x01,
- "Failed"
- },
- {
- 0xA069,
- 0x02,
- "Not Supported"
- },
- {
- 0xA06D,
- 0x01,
- "Bad Control"
- },
- {
- 0xA06D,
- 0x02,
- "Success Write"
- },
- {
- 0xA06D,
- 0x03,
- "Bad Write Parameter"
- },
- {
- 0xA071,
- 0x01,
- "Bad MAC Address"
- },
- {
- 0xA071,
- 0x02,
- "Bad TMSLOT"
- },
- {
- 0xA081,
- 0x10,
- "Bad Module ID"
- },
- {
- 0xA081,
- 0x14,
- "No Flash Memory"
- },
- {
- 0xA081,
- 0x18,
- "Not Enough Flash Memory"
- },
- {
- 0xA081,
- 0x1C,
- "Bad Image Header Checksum"
- },
- {
- 0xA081,
- 0x20,
- "Bad Image Checksum"
- },
- {
- 0xA081,
- 0x24,
- "Invalid PIB"
- },
- {
- 0xA081,
- 0x28,
- "Softloader Too Large"
- },
- {
- 0xA081,
- 0x2C,
- "Firmware File Too Large"
- },
- {
- 0xA081,
- 0x42,
- "Firmware without PIB"
- },
- {
- 0xA081,
- 0x44,
- "Bad PIB Checksum"
- },
- {
- 0xA081,
- 0x46,
- "DAK Not Zero"
- },
- {
- 0xA081,
- 0x48,
- "DAC Mismatch"
- },
- {
- 0xA081,
- 0x50,
- "MFG HFID Mismatch"
- },
- {
- 0xA081,
- 0x52,
- "Bad Bind Factory Defaults"
- },
- {
- 0xA081,
- 0x54,
- "Bad Bind Template PIB"
- },
- {
- 0xA081,
- 0x56,
- "Bad Bind Working PIB"
- },
- {
- 0xA081,
- 0x58,
- "DAK Mismatch"
- },
- {
- 0xA081,
- 0x5A,
- "Failed to Lock NVM"
- },
- {
- 0xA089,
- 0x01,
- "Bad Control"
- },
- {
- 0xA089,
- 0x02,
- "Bad Volatility"
- },
- {
- 0xA089,
- 0x03,
- "Bad Classifier"
- },
- {
- 0xA089,
- 0x04,
- "Classifier table full"
- },
- {
- 0xA089,
- 0x05,
- "Classifier exists with different action"
- },
- {
- 0xA089,
- 0x06,
- "Classifier not found"
- },
- {
- 0xA08D,
- 0x10,
- "Refused"
- },
- {
- 0xA08D,
- 0x11,
- "Refused"
- },
- {
- 0xA08F,
- 0x10,
- "Error"
- },
- {
- 0xA091,
- 0x01,
- "Unknown Peer Address"
- },
- {
- 0xA091,
- 0x02,
- "Unknown Slot Number"
- },
- {
- 0xA099,
- 0x01,
- "Destination Address Misaligned"
- },
- {
- 0xA099,
- 0x02,
- "Entry Point Misaligned"
- },
- {
- 0xA099,
- 0x04,
- "Entry Point Out-of-Bounds"
- },
- {
- 0xA099,
- 0x08,
- "Bad Checksum"
- },
- {
- 0xA099,
- 0x10,
- "Out of Memory"
- },
- {
- 0xA099,
- 0x20,
- "Offset or Length Mismatch"
- },
- {
- 0xA099,
- 0x40,
- "Memory not Operational"
- },
- {
- 0xA099,
- 0x80,
- "Bad Length"
- },
- {
- 0xA0B1,
- 0x10,
- "Invalid Number of Module Operations"
- },
- {
- 0xA0B1,
- 0x11,
- "Invalid Module Operation ID"
- },
- {
- 0xA0B1,
- 0x12,
- "Invalid Session ID"
- },
- {
- 0xA0B1,
- 0x13,
- "Invalid Num Module Operation Specific Data"
- },
- {
- 0xA0B1,
- 0x14,
- "Module ID not found"
- },
- {
- 0xA0B1,
- 0x15,
- "Invalid Module Length"
- },
- {
- 0xA0B1,
- 0x16,
- "Invalid Module Index"
- },
- {
- 0xA0B1,
- 0x17,
- "Invalid Data Length"
- },
- {
- 0xA0B1,
- 0x18,
- "Unexpected Offset"
- },
- {
- 0xA0B1,
- 0x19,
- "Invalid Commit Action Code"
- },
- {
- 0xA0B1,
- 0x1A,
- "Operation Block by previous Commit"
- },
- {
- 0xA0B1,
- 0x1B,
- "Duplicate ModuleID/SubID"
- },
- {
- 0xA0B1,
- 0x1C,
- "Invalid ModuleID/SubID"
- },
- {
- 0xA0B1,
- 0x20,
- "No Flash Memory"
- },
- {
- 0xA0B1,
- 0x21,
- "Not Enough Flash Memory"
- },
- {
- 0xA0B1,
- 0x22,
- "Unsupported Flash memory Type"
- },
- {
- 0xA0B1,
- 0x23,
- "Can't Lock Flash Memory"
- },
- {
- 0xA0B1,
- 0x24,
- "Can't Write Flash Memory"
- },
- {
- 0xA0B1,
- 0x30,
- "Bad Module Checksum"
- },
- {
- 0xA0B1,
- 0x31,
- "Individual Module Error"
- },
- {
- 0xA0B1,
- 0x32,
- "Module not available in NVM or Memory"
- },
- {
- 0xA0B1,
- 0x40,
- "Invalid Header Checksum"
- },
- {
- 0xA0B1,
- 0x41,
- "Invalid Firmware Image Checksum"
- },
- {
- 0xA0B1,
- 0x42,
- "Softloader Image is Too Large"
- },
- {
- 0xA0B1,
- 0x43,
- "Firmware Image is Too Large"
- },
- {
- 0xA0B1,
- 0x44,
- "Invalid PIB Checksum"
- },
- {
- 0xA0B1,
- 0x45,
- "No Firmware Version"
- },
- {
- 0xA0B1,
- 0x46,
- "FW Commit but no PIB"
- },
- {
- 0xA0B1,
- 0x47,
- "Major Version Mismatch"
- },
- {
- 0xA0B1,
- 0x48,
- "Minor Version Mismatch"
- },
- {
- 0xA0B1,
- 0x50,
- "Invalid PIB"
- },
- {
- 0xA0B1,
- 0x51,
- "DAK Not Zero"
- },
- {
- 0xA0B1,
- 0x52,
- "MAC Mismatch"
- },
- {
- 0xA0B1,
- 0x53,
- "DAK Mismatch"
- },
- {
- 0xA0B1,
- 0x54,
- "Manufacturer HFID Mismatch"
- },
- {
- 0xA0B1,
- 0x55,
- "Bad Bind to Factory Default PIB"
- },
- {
- 0xA0B1,
- 0x56,
- "Bad Bind to Template PIB"
- },
- {
- 0xA0B1,
- 0x57,
- "Bad Bind to Working PIB"
- },
- {
- 0xA0B1,
- 0x58,
- "Bad Bind Scratch PIB"
- },
- {
- 0xA0B1,
- 0x59,
- "Error Generating Checksum Scratch PIB"
- },
- {
- 0xA0B1,
- 0x5A,
- "Checksum Error O1 PIB"
- },
- {
- 0xA0B1,
- 0x5B,
- "Checksum Error O2 PIB"
- },
- {
- 0xA0B1,
- 0x5C,
- "Checksum Error Working PIB"
- },
- {
- 0xA0B1,
- 0x61,
- "Unexpected Module Operation"
- },
- {
- 0xA0B1,
- 0x62,
- "Not Enough Resources"
- },
- {
- 0xA0B1,
- 0x63,
- "Received Module Data Out of Order"
- },
- {
- 0xA0B1,
- 0x64,
- "No PIB Version"
- },
- {
- 0xA0B1,
- 0x70,
- "Module Length Mismatch with Module Info"
- },
- {
- 0xA0B1,
- 0x71,
- "No NVM Softloader Present in Flash Memory"
- },
- {
- 0xA0C1,
- 0x03,
- "Invalid Classifier"
- },
- {
- 0xA0C1,
- 0x04,
- "Already too many Classifiers"
- },
- {
- 0xA0C1,
- 0x05,
- "Classifier exists with different Classification Action"
- },
- {
- 0xA0C1,
- 0x07,
- "Link Already in Progress"
- },
- {
- 0xA0C1,
- 0x08,
- "Invalid Configuration"
- },
- {
- 0xA0C1,
- 0x10,
- "Invalid CSPEC Version"
- },
- {
- 0xA0C1,
- 0x11,
- "Invalid CSPEC"
- },
- {
- 0xA0C1,
- 0x20,
- "Out of Local Resources"
- },
- {
- 0xA0C1,
- 0x30,
- "Invalid Peer"
- },
- {
- 0xA0C1,
- 0x31,
- "Peer Confirm Timed out"
- },
- {
- 0xA0C1,
- 0x40,
- "Peer rejection"
- },
- {
- 0xA0C5,
- 0x01,
- "Invalid Modification Control"
- },
- {
- 0xA0C5,
- 0x06,
- "CID Not Found"
- },
- {
- 0xA0C5,
- 0x07,
- "Link Update in Progress, try again later"
- },
- {
- 0xA0C9,
- 0x06,
- "CID Not Found"
- },
- {
- 0xA0C9,
- 0x07,
- "Link Update in Progress. Try again later"
- },
- {
- 0xA0C9,
- 0x31,
- "Peer Confirm Timed out"
- },
- {
- 0xA0CD,
- 0x01,
- "Invalid Request Type"
- },
- {
- 0xA0CD,
- 0x04,
- "Too Many Requests",
- },
- {
- 0xA0CD,
- 0x06,
- "CID Not Found"
- },
- {
- 0xA0CD,
- 0x10,
- "Invalid CSPEC Version"
- },
- {
- 0xA0CD,
- 0x31,
- "Peer Confirm Timed out"
- },
- {
- 0xA0D1,
- 0x01,
- "Unsupported"
- },
- {
- 0xA0D1,
- 0x02,
- "Process Failed"
- },
- {
- 0xA0D1,
- 0x02,
- "Process Failed"
- },
- {
- 0xA0D9,
- 0x01,
- "Bad VersionID or InfoID"
- },
- {
- 0xA0DD,
- 0x01,
- "No Enumeration Table"
- },
- {
- 0xA0F5,
- 0x01,
- "Bad Request Type"
- },
- {
- 0xA0F5,
- 0x02,
- "FMI Not Zero"
- },
- {
- 0xA0F5,
- 0x03,
- "Invalid Command"
- },
- {
- 0xA0F5,
- 0x04,
- "Bad Index"
- },
- {
- 0xA0F5,
- 0x05,
- "Bad Value Count"
- },
- {
- 0xA0F5,
- 0x06,
- "Capture Already Started"
- },
- {
- 0xA0F5,
- 0x07,
- "Data Invalid"
- },
- {
- 0xA0F5,
- 0x08,
- "Bad Gain Value"
- },
- {
- 0xA0F5,
- 0x10,
- "Bad MAC Address"
- },
- {
- 0xA0F5,
- 0x11,
- "Bad Tone Map Index"
- },
- {
- 0xA0F5,
- 0x12,
- "Capture Failed"
- },
- {
- 0xA0F5,
- 0x13,
- "No Data Available"
- },
- {
- 0xA0F9,
- 0x01,
- "Get Property Failure"
- },
- {
- 0xA0F9,
- 0x02,
- "Unsupported Property"
- },
- {
- 0xA0F9,
- 0x03,
- "Unsupported Property Version"
- },
- {
- 0xA101,
- 0x01,
- "Set Property Failure"
- },
- {
- 0xA101,
- 0x02,
- "Unsupported Property"
- },
- {
- 0xA101,
- 0x03,
- "Unsupported Property Version"
- },
- {
- 0xA101,
- 0x04,
- "Property Not Persistent"
- },
- {
- 0xA101,
- 0x05,
- "Flash Memory Failure"
- },
- {
- 0xA101,
- 0x06,
- "Bad Option for Supported Property"
- },
- {
- 0xA101,
- 0x07,
- "Invalid Property Data"
- },
- {
- 0xA101,
- 0x08,
- "Bad Property Data Length"
- },
- {
- 0xA105,
- 0x01,
- "Buffer Not Available"
- },
- {
- 0xA109,
- 0x01,
- "No Flash Memory"
- },
- {
- 0xA109,
- 0x02,
- "Invalid Flash Sector"
- },
- {
- 0xA109,
- 0x03,
- "Current DAK Mismatch"
- },
- {
- 0xA109,
- 0x04,
- "Flash is Busy"
- },
- {
- 0xA109,
- 0x05,
- "No Access to Flash"
- },
- {
- 0xA109,
- 0x06,
- "Unsupported Chip"
- },
- {
- 0xA109,
- 0x07,
- "Unspecified Error"
- },
- {
- 0xA10D,
- 0x01,
- "Option Not Supported"
- },
- {
- 0xA10D,
- 0x02,
- "No Flash Memory"
- },
- {
- 0xA10D,
- 0x03,
- "Pending Self Test"
- },
- {
- 0xA10D,
- 0x04,
- "Flash Activity Conflict"
- },
- {
- 0xA10D,
- 0x05,
- "Bad Parameter"
- },
- {
- 0xA111,
- 0x01,
- "Option Not Supported"
- },
- {
- 0xA111,
- 0x02,
- "Self Test Finished"
- },
- {
- 0xA111,
- 0x03,
- "Self Test Pending"
- },
- {
- 0xA111,
- 0x04,
- "Self Test In Progress"
- },
- {
- 0xA111,
- 0x05,
- "Self Test No Result"
- },
- {
- 0xA111,
- 0x06,
- "Self Test Aborted"
- },
- {
- 0xA111,
- 0x07,
- "No Flash Memory"
- },
- {
- 0xA115,
- 0x01,
- "Interface Not Supported"
- },
- {
- 0xA115,
- 0x02,
- "Slave Not Found"
- },
- {
- 0xA115,
- 0x03,
- "Wrong Parameter"
- },
- {
- 0xA119,
- 0x01,
- "Bad Version"
- },
- {
- 0xA119,
- 0x02,
- "Bad Argument"
- },
- {
- 0xA119,
- 0x03,
- "Too Many Slaves"
- },
- {
- 0xA119,
- 0x04,
- "Too Many VLAN IDs"
- },
- {
- 0xA119,
- 0x05,
- "No Such Slave"
- },
- {
- 0xA119,
- 0x06,
- "Flash Operation Blocked"
- },
- {
- 0xA119,
- 0x07,
- "Unsupported Operation"
- },
- {
- 0xA119,
- 0x08,
- "Flash Activity Conflict"
- },
- {
- 0xA119,
- 0x09,
- "Table Busy"
- },
- {
- 0xA119,
- 0x0A,
- "One Slave Has Duplicate VLAN ID"
- },
- {
- 0xA119,
- 0x0B,
- "Multiple Slaves Have Same VLAN ID"
- },
- {
- 0xA119,
- 0x0C,
- "Multiple Configurations for One Slave"
- },
- {
- 0xA119,
- 0x0D,
- "Can't set VLAN ID for Local Station"
- },
- {
- 0xA119,
- 0x0E,
- "Bad Data Offset"
- },
- {
- 0xA119,
- 0x0F,
- "Bad Data Length"
- },
- {
- 0xA119,
- 0x10,
- "VLAN ID Has Been Configured"
- },
- {
- 0xA119,
- 0x11,
- "Bad MME Source"
- },
- {
- 0xA119,
- 0x12,
- "VLAN ID out of range"
- },
- {
- 0xA119,
- 0x13,
- "Cannot remove nonexistent VLAN ID"
- },
- {
- 0xA149,
- 0x1,
- "Invalid Key Length"
- },
- {
- 0xA149,
- 0x2,
- "Invalid Key"
- },
- {
- 0xA149,
- 0x3,
- "Invalid Access Type"
- },
- {
- 0xA149,
- 0x4,
- "Invalid Level Control"
- }
- };
- #endif
- char const * MMECode (uint16_t MMTYPE, uint8_t MSTATUS)
- {
- #ifndef MMEPASSFAIL
- size_t lower = 0;
- size_t upper = SIZEOF (mme_codes);
- MMTYPE = LE16TOH (MMTYPE);
- while (lower < upper)
- {
- size_t index = (lower + upper) >> 1;
- signed order = MMTYPE - mme_codes [index].type;
- if (order < 0)
- {
- upper = index - 0;
- continue;
- }
- if (order > 0)
- {
- lower = index + 1;
- continue;
- }
- for (lower = index; lower > 0; lower--)
- {
- if (mme_codes [lower - 1].type != mme_codes [index].type)
- {
- break;
- }
- }
- for (upper = index; upper < SIZEOF (mme_codes); upper++)
- {
- if (mme_codes [upper + 0].type != mme_codes [index].type)
- {
- break;
- }
- }
- while (lower < upper)
- {
- index = (lower + upper) >> 1;
- order = MSTATUS - mme_codes [index].code;
- if (order < 0)
- {
- upper = index - 0;
- continue;
- }
- if (order > 0)
- {
- lower = index + 1;
- continue;
- }
- return (mme_codes [index].text);
- }
- }
- #endif
- return ((MSTATUS)? ("Failure"):("Success"));
- }
- #endif
- </pre>
- <div class='footerlink'>
- [<a href='mme.c.html' title=' mme.c '>PREV</a>]
- [<a href='toolkit.html' title=' Index '>HOME</a>]
- [<a href='MMEMode.c.html' title=' MMEMode.c '>NEXT</a>]
- </div>
- </body>
- </html>
|