For TP-LINK TL-WN321G v5 (version 5) adapter you have to also edit the file common/rtusb_dev_id.c (in the driver folder) before compiling the driver.
Read with lsusb, the adapter's ID is f201:5370. To make the driver recognize it, edit rtusb_dev_id.c :
Within the file find the paragraph that looks like this:
Code:
#ifdef RT5370
{USB_DEVICE(0x148F,0x5370)}, /* Ralink 5370 */
{USB_DEVICE(0x148F,0x5372)}, /* Ralink 5370 */
{USB_DEVICE(0x13D3,0x3365)}, /* Azurewave */
{USB_DEVICE(0x13D3,0x3329)}, /* Azurewave */
{USB_DEVICE(0x2001,0x3C15)}, /* Alpha */
{USB_DEVICE(0x2001,0x3C19)}, /* Alpha */
{USB_DEVICE(0x2001,0x3C1C)}, /* DLink */
{USB_DEVICE(0x2001,0x3C1D)}, /* DLink */
{USB_DEVICE(0x043E,0x7A12)}, /* Arcadyan */
{USB_DEVICE(0x043E,0x7A22)}, /* LG innotek */
#endif // RT5370 //
and add the following line:
Code:
{USB_DEVICE(0xF201,0x5370)}, /* TP-LINK TL-WN321Gv5 */
so it will look like this:
Code:
#ifdef RT5370
{USB_DEVICE(0x148F,0x5370)}, /* Ralink 5370 */
{USB_DEVICE(0x148F,0x5372)}, /* Ralink 5370 */
{USB_DEVICE(0x13D3,0x3365)}, /* Azurewave */
{USB_DEVICE(0x13D3,0x3329)}, /* Azurewave */
{USB_DEVICE(0x2001,0x3C15)}, /* Alpha */
{USB_DEVICE(0x2001,0x3C19)}, /* Alpha */
{USB_DEVICE(0x2001,0x3C1C)}, /* DLink */
{USB_DEVICE(0x2001,0x3C1D)}, /* DLink */
{USB_DEVICE(0x043E,0x7A12)}, /* Arcadyan */
{USB_DEVICE(0x043E,0x7A22)}, /* LG innotek */
{USB_DEVICE(0xF201,0x5370)}, /* TP-LINK TL-WN321Gv5 */
#endif // RT5370 //
and then compile the driver.
Bookmarks