reading hardware wifi
Code:/* hardware wifi card address 00-01-02-03-04-05 */ int wifiadaptercardpeek( int wifidatapeek ) { asm( " mov (0x000102030405) , wifidatapeek ; " ); // end asm source dest return wifidatapeek; }; // end wifiadapterpeekthis is the least amount of error messages. have triedAssembler messages:
too many memory references for `mov'
mov (0102030405h) , %eax ;
mov 0x000102030405 , wifidatapeek ;
mov 000102030405 , wifidatapeek ;
mov 0102030405h , wifidatapeek ;
mov [0102030405] , wifidatapeek ;
mov $0x000102030405 , wifidatapeek ;
mov (0x000102030405) , wifidatapeek
mov [0x0102030405] , wifidatapeek ;
" missing or invalid displacement expression `(0x000102030405)' taken as 0 "
with something like that for errors
want to read the wifi card at the hex address of 00-01-02-03-04-05. actual address removed just for question to keep simple addr of 12345 for question. function wifiadaptercardpeek() read raw and return what variable wifidatapeek obtains. unknown registers of wifiadapter. if any. administrator tools say device is working properly and driver is installed.
have not triedEthernet adapter Wireless Network Connection:
Media State . . . . . . . . . . . : Media disconnected
can not get any info from the wifi adapter company.Code:"movl %%ebx, %0;" : "=r" ( wifidatapeek ) /* output */
i looked in to read() and readex() and tried to figure a way to do this in c but the best solution was to do a function inline asm to read the wifi raw. after a little bit of tinkering i got the wifi to do a limited connection. with file share off and tcp/ip also off i get a limited connection. it will read the ssid but that is about it. but the xp will not display the wifi network ssid in the dialog box. i got it from nonoperational to operational. i still want to try to get a prog to read the adapter raw. i turned on all the services but it will not do any more. the popup box in the bar say that it is connected. the task manager says operational but does not stay like that. 0 send 0 received but does read the ssid. how with out showing a received packet ? or showing the "available networks" in the dialog box net manager ?
problem is that i can not get the inline asm to compile. have tried the variable wifidatapeek as both an int and char. both ways at&t and intel asm.
second problem reading an address of a hardware location. known address 0x000102030405. if it were a variable i could get the address like (var) or get the contents of var by just using var. or in c &var as example. instead of using a variable i tried to mov the contents of the address to the accumulator then from the accumulator to the print que. as the above function wifiadaptercardpeek() was modified to try different way to accomplish the same task.
also have looked in to using pop store and other asm nemonic with same no compile result. note it has it own folder. still wifried any suggestions <that are not co$$$$tly> ? meow tia.
note two also downloaded ebook linux writing drivers .pdf have to read adapter before i can write a driver.
note three trying to read hardware addr through usb think that i might be missing port and hub of the usb inorder to get it to work ? but that i have addr of hardware and should not be usb relevant just access it as if it were on motherboard since usb is just transport uart for addr and data lines <par to ser> and then back.
note four incentive .... internet from 7bps to 36.6 bps dial up too 400mbps wifi
note five tasm does not have a store accumulator but it does have a store string why ?
dev-cpp or borland