aboutsummaryrefslogtreecommitdiff
path: root/src/Wifi.cpp
Commit message (Collapse)AuthorAge
* merge local_wifi (#1516)Arisotura2022-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt at betterer wifi * add preliminary sync mechanism * fix gaps in wifi implementation * move local-MP comm to its own module instead of cramping Platform.cpp * remove some stupid cruft * as you wish, Sorer (starting work on shared-memory system) * shared-memory IPC that actually works (albeit Windows-only for now) * shut up logging from NULL writes on ARM7 (ffs Nintendo learn to code) * get this somewhat good * leave client sync mode when host deauths. makes download play actually work. * start implementing MP-comm error handling * * add MP-reply error counters * feeble attempt at fixing slowdown/desync/etc problems * somewhat better exchange/sync method * * 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 * remove a bunch of cruft * 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. * more graceful handling of disconnects * deal with FIFO overflow more gracefully * BAHAHAHAHAHAHAHAHHHH THE SNEAKY BASTARDS so, when the DS receives a beacon with the right BSSID that beacon's timestamp is copied to USCOUNTER * attempt at making the connection process smoother for weird games * * begin adding POWCNT2, only applies to wifi for now * begin work on wifi scheduler * implement the shitty timers * add the RF wakeup thing * begin work on receiving frames. for now it can just receive melonAP beacons, but hey, it's a start. * add enough TX functionality that online wifi is a possibility again. * there are problems with this scheduler thing. committing it anyway * kind of a rollback... we're gonna work out a compromise on this, I guess * don't transmit shit if RXCNT.bit15 isn't set * move RX-finish to its own function. more accurate filtering. implement RXFILTER. * remove some cruft * fix some of the shittiness when trying to connect more than two players * fix some more shittiness * fix more wifi shittiness (mainly don't try to receive shit while sending a frame) * run wifi every 8µs. improves performance. * fix IRQ14/IRQ15 * make this work under Linux * Make it work on macOS, for now using a custom sem_timedwait implementation. If anyone knows anything about mach ports and have an idea for how to make this work using mach IPC, please do let me know. * 25ms seems like a good timeout * begin work on proper multiplayer UI shito. for now, determine a global instance ID, and derivate the system MAC from it. remove 'randomize MAC' option. * finish removing RandomizeMAC * lay groundwork for instance-unique config * work some on the UI... make it not labelled Fart * more UI work: make it explicit that some things are instance-unique * separate firmware files for multiplayer instances * make instances save to different save files, too * more UI work, make things somewhat less shitty * lay base for the multiplayer settings dialog * actually hook up most of that dialog * actually implement the fun audio settings * ensure all the wifi shit is properly savestated and reset. properly update timings for the wifi region when wifi is disabled. * add more fun labels * * ignore WEP frames if WEP is off * implement RX_LEN_CROP * fake enough of WEP processing to make Inazuma Eleven work * * do not copy more ROM banner data than actually needed * avoid trying to read out of bounds if the banner offset is bad * Fix oversight with the preferences action causing the build to fail on macOS Co-authored-by: Nadia Holmquist Pedersen <nadia@nhp.sh>
* comment out debug printfsRSDuck2022-02-25
|
* Wifi power saving, hopefully enough!RSDuck2022-02-25
|
* update copyright headersArisotura2022-01-09
|
* Fix some compiler warningsWaluigiWare642021-05-03
|
* update copyright year and add missing GPL headersRSDuck2021-03-12
|
* handle edge cases properlyRSDuck2021-01-09
|
* mask off upper bits when incrementing RX addrRSDuck2021-01-09
| | | | fixes #931
* use C++ style structs everywhereRSDuck2021-01-02
|
* remove some UBRSDuck2020-09-04
| | | | | | | - 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
* wifi:Arisotura2020-08-19
| | | | | * don't receive packets if the RX buffer is zero-sized * avoid potential out-of-bound writes
* take care of some minor detailsArisotura2020-06-21
|
* get it to atleast finish a scan without shitting itselfArisotura2020-06-15
|
* * take nwifi forward someArisotura2020-06-15
| | | | | * shut up CP15 printf's for Fx0 * fix bugs
* update copyright yearsArisotura2020-02-14
|
* start differenciating between direct and indirect LAN modes.Arisotura2019-03-04
| | | | indirect mode will use regular sockets and not pcap.
* start work on non-direct mode. reply to DHCP discover frame.Arisotura2019-02-23
|
* also, update copyright nameArisotura2019-01-22
|
* redesign main emu loop to use timestamps instead of being a trainwreckStapleButter2019-01-05
| | | | | | | | * cleaner code * faster in some cases * more accurate (on-demand compensation for timers and GPU) * less prone to desyncs * overall betterer
* aight, wifi doneStapleButter2018-10-18
|
* fixor copyright years.StapleButter2018-09-15
|
* wifi: implement increment for txheader[4]StapleButter2018-01-04
|
* wifi:StapleButter2017-12-19
| | | | | * fix BSSID/MAC check when receiving packets * safeguard AP auth/deauth so local MP doesn't trigger it
* wifiAP: basic support for probereq/auth/assoc/deauth/deassocStapleButter2017-12-18
|
* start working on melonAP.StapleButter2017-12-18
| | | | it sends beacons!
* wifi: more shitStapleButter2017-12-18
|
* actually init pcap etcStapleButter2017-12-17
|
* Fix bitwise operation precedence.Anthony J. Bentley2017-12-06
|
* comment out some unwanted printf'sStapleButter2017-12-07
|
* wifi: little fix related to replies (when the address isn't set, don't try ↵StapleButter2017-06-22
| | | | to adjust the TX header)
* wifi: tiny fix (bad TXSTAT after MP host transfer)StapleButter2017-06-20
|
* wifi: fix for MP replies.StapleButter2017-06-18
| | | | | clean up code. make packet logging conditional.
* wifi: another little fixStapleButter2017-06-18
|
* wifi: fix reception of MP repliesStapleButter2017-06-18
| | | | (still not working, don't catch fire Ndymario)
* send empty reply when no MP reply is configuredStapleButter2017-06-16
|
* emulate RXTXADDR. receive packets progressively instead of all at once.StapleButter2017-06-15
|
* implement RFSTATUS/RFPINS values for TX and RXStapleButter2017-06-15
|
* more accurate MP replyStapleButter2017-06-15
|
* wifi: more correct IRQ behavior, time MP replies better.StapleButter2017-06-15
|
* wifi: proper TX/RX status switch and RX checkStapleButter2017-06-15
| | | | readme: little update
* wifi: fix IRQ14 emulation. other fixes and attempts.StapleButter2017-06-13
|
* wifi: attempt at further MP functionality (reply, ack). not working. ugly.StapleButter2017-06-09
|
* * fix TX logic againStapleButter2017-06-07
| | | | | * add multiplayer CMD slot * misc fixes
* wifi: cmd timerStapleButter2017-06-05
|
* wifi: fix TX start logic (it is possible to write TXREQ then TXLOC)StapleButter2017-06-05
|
* * bump version numberStapleButter2017-06-04
| | | | | * implement 32bit reads to keypad registers * also implement RCNT more properly
* draft APIs for threading in the core.StapleButter2017-05-19
| | | | also, misc wifi crap, nothing noteworthy.
* wifi improvementsStapleButter2017-05-12
|
* more work on packet reception.StapleButter2017-05-12
|
* attempt at actually sending packets.StapleButter2017-05-12
| | | | into the void for now.