There are several example drivers posted on the community that you may want to review as examples like Wi-Fi presence, Onkyo driver (old version posted before it became stock) and some details like in this thread