//************************************************************//
//**********************attach&detach Usage*******************//
//************************************************************//

Approach:
1.user need to be sure the wpa_supplicant and wpa_supplicnat.conf is 
  in currnet folder;
2.compile driver_event.c,
  for instance:#gcc -o event driver_event.c
  get the object code "event";
3.install VT6656 module;
4.run "#./event &" as a deamon;
after this step ,you can plug or unplug device repeatly.

Note:1.please be sure there is no Network-Manager exist in OS,or please 
     disable it if you run this function;
     2.you can configure your encryption by modifying wpa_supplicnat.conf. 