Commit Graph

71 Commits

Author SHA1 Message Date
b858114c48 more graceful handling of disconnects 2022-08-27 13:17:15 +02:00
47bc7bb323 set wifi time interval to 34 cycles instead of 33. games seem sensitive to the general timing of wifi vs the rest of the system, and this seems to make things run better, atleast until I rewrite this to use a proper scheduler. 2022-08-27 11:42:43 +02:00
728eb38b88 remove a bunch of cruft 2022-08-26 23:40:59 +02:00
f0452ca149 * when entering power-saving mode, be sure to finish transferring the current frame first
* fix misc bug due to old cruft leftover

makes for a more stable connection
2022-08-26 00:43:53 +02:00
da4acab0bd somewhat better exchange/sync method 2022-08-25 00:36:31 +02:00
8c4b756068 * add MP-reply error counters
* feeble attempt at fixing slowdown/desync/etc problems
2022-08-21 15:08:20 +02:00
639ed7b150 start implementing MP-comm error handling 2022-08-21 13:37:31 +02:00
5db8499787 leave client sync mode when host deauths. makes download play actually work. 2022-08-21 00:51:28 +02:00
40ceb207e9 get this somewhat good 2022-08-20 19:53:05 +02:00
5a10807f91 shared-memory IPC that actually works (albeit Windows-only for now) 2022-08-20 02:29:42 +02:00
d8b735822a as you wish, Sorer
(starting work on shared-memory system)
2022-08-19 22:56:01 +02:00
5f77ad3394 remove some stupid cruft 2022-08-19 18:38:45 +02:00
ab15d7402a attempt at betterer wifi
* add preliminary sync mechanism
* fix gaps in wifi implementation
2022-08-18 19:47:01 +02:00
bb67e186df comment out debug printfs 2022-02-25 14:35:45 +01:00
0a1fb5ae50 Wifi power saving, hopefully enough! 2022-02-25 14:25:19 +01:00
35cc79787d update copyright headers 2022-01-09 02:15:50 +01:00
2ff065e5ea Fix some compiler warnings 2021-05-03 13:40:44 +01:00
436b3c4c1d update copyright year and add missing GPL headers 2021-03-12 20:07:40 +01:00
6b306e18a5 handle edge cases properly 2021-01-09 22:06:15 +01:00
c475372372 mask off upper bits when incrementing RX addr
fixes #931
2021-01-09 18:31:12 +01:00
7d448d911d use C++ style structs everywhere 2021-01-02 11:38:06 +01:00
9772201345 remove some UB
- savestates used to read a four bytes from a single byte value
- a few unassigned variables
- some other things
- also make the ROR macro an inline function
2020-09-04 20:37:14 +02:00
660792d64b wifi:
* don't receive packets if the RX buffer is zero-sized
* avoid potential out-of-bound writes
2020-08-19 19:16:09 +02:00
e43a216ab5 take care of some minor details 2020-06-21 11:02:42 +02:00
c6dc5dfc4b get it to atleast finish a scan without shitting itself 2020-06-15 14:35:02 +02:00
fc5eedc716 * take nwifi forward some
* shut up CP15 printf's for Fx0
* fix bugs
2020-06-15 13:39:33 +02:00
83f8e11bc1 update copyright years 2020-02-14 20:18:08 +01:00
1e108ad7fb start differenciating between direct and indirect LAN modes.
indirect mode will use regular sockets and not pcap.
2019-03-04 20:52:29 +01:00
93d51b0cbc start work on non-direct mode. reply to DHCP discover frame. 2019-02-23 13:41:51 +01:00
b0efde8bf7 also, update copyright name 2019-01-22 15:58:29 +01:00
669247e8c8 redesign main emu loop to use timestamps instead of being a trainwreck
* cleaner code
* faster in some cases
* more accurate (on-demand compensation for timers and GPU)
* less prone to desyncs
* overall betterer
2019-01-05 05:28:58 +01:00
20862b7daf aight, wifi done 2018-10-18 03:22:53 +02:00
fea7955675 fixor copyright years. 2018-09-15 02:32:13 +02:00
981661a36d wifi: implement increment for txheader[4] 2018-01-04 00:10:35 +01:00
5fe30d306f wifi:
* fix BSSID/MAC check when receiving packets
* safeguard AP auth/deauth so local MP doesn't trigger it
2017-12-19 00:33:09 +01:00
0ff67d28d3 wifiAP: basic support for probereq/auth/assoc/deauth/deassoc 2017-12-18 22:44:29 +01:00
9632aa4021 start working on melonAP.
it sends beacons!
2017-12-18 21:37:17 +01:00
4ec2d109f7 wifi: more shit 2017-12-18 19:31:26 +01:00
e44bc7743d actually init pcap etc 2017-12-17 23:09:48 +01:00
b603029549 Fix bitwise operation precedence. 2017-12-06 22:02:55 -07:00
b5046b9766 comment out some unwanted printf's 2017-12-07 01:04:00 +01:00
6ba178d7cf wifi: little fix related to replies (when the address isn't set, don't try to adjust the TX header) 2017-06-22 16:38:35 +02:00
456fe23850 wifi: tiny fix (bad TXSTAT after MP host transfer) 2017-06-20 12:20:37 +02:00
c5dbb01aa3 wifi: fix for MP replies.
clean up code.
make packet logging conditional.
2017-06-18 16:26:59 +02:00
d5fd96c500 wifi: another little fix 2017-06-18 03:41:36 +02:00
8cde75ce53 wifi: fix reception of MP replies
(still not working, don't catch fire Ndymario)
2017-06-18 02:05:21 +02:00
33fc98fac4 send empty reply when no MP reply is configured 2017-06-16 01:54:31 +02:00
6cda8d98b4 emulate RXTXADDR. receive packets progressively instead of all at once. 2017-06-15 23:38:48 +02:00
43cedebb65 implement RFSTATUS/RFPINS values for TX and RX 2017-06-15 23:01:44 +02:00
32e6e81ef4 more accurate MP reply 2017-06-15 22:26:32 +02:00