driver_nl80211.c is based on driver_wext.c and it is still using Linux wireless extensions for many functions. Over time, the new driver interface code should be modified to use nl80211/cfg80211 for everything.