Denial of service attacks tend to be some of the more dangerous techniques to practice or try to get hands on experience with. It is very easy to fat finger a mac address and take down a device that you do not have lawful permission to test against. For this reason, unless you are an adequately trained professional and adequately equipped to negate any potential inadvertent risks, it is advised to not attempt these techniques (even in a lab environment).
Warning - Inadvertent Outages
This technique can cause outages for any nearby WiFi-enabled devices.
It is strongly advised to not attempt this technique unless you are adequately trained and equipped to do so safely and be in compliance with local laws and regulations.
Warning - Regarding Legality
Performing this technique may not be in compliance with relevant laws and regulation. Please ensure that you confirm that any experiments or exercises are done within the bounds of the laws and regulations that apply to your location.
Danger - Using this technique can cause outages to any WiFi enabled devices that are within range. For that reason, I did not attempt to lab this technique. One idea that I had for how to lab this safely would be to create a Faraday cage (grounded metal box) and put the lab devices inside of it for the test. Although, I do not have experience with building or using Faraday cages, thus I aired on the side of caution and skipped experimenting this technique all together. Unless you are competent and equipped to know of and take the proper measures to ensure that no outages occur for nearby devices, I would recommend skipping the lab portion of this technique.