diff --git a/src/wtp/dot11.c b/src/wtp/dot11.c index 901f0a82..212084cb 100644 --- a/src/wtp/dot11.c +++ b/src/wtp/dot11.c @@ -102,14 +102,64 @@ printf("t6\n"); b+= add_ds_ie(b); printf("return ayhead = malloc(256); - dot11_get_beacon_head(ap,bd->head,&bd->head_len); +// dot11_get_beacon_head(ap,bd->head,&bd->head_len); + +uint8_t hf[] = { +0x80, 0x00, 0x00, 0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF0,0x7B, +0xCB, 0xA4, 0xF2, 0x50, 0xF0, 0x7B, 0xCB, 0xA4, 0xF2, 0x50, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x00, 0x21, 0x04, +0x00, 0x09, 0x58, 0x54, 0x61, 0x74, 0x6F, 0x72, 0x74, 0x37, 0x37, 0x01, +0x08, 0x82, 0x84, 0x8B, 0x96, 0x0C, 0x12, 0x18, 0x24 + +}; + +printf ("memcpy head %d\n",sizeof(hf)); + memcpy(bd->head,hf,sizeof(hf)); +printf(" memcpyed\n"); + bd->head_len=sizeof(hf); +printf ("done\n"); return 0; } diff --git a/src/wtp/wtpdrv.c b/src/wtp/wtpdrv.c index c83c676f..132225ff 100644 --- a/src/wtp/wtpdrv.c +++ b/src/wtp/wtpdrv.c @@ -754,9 +754,20 @@ int start_ap(struct nl_sock *sk) printf("Get Beacon Data \n"); dot11_get_beacon_data(ap,&bd); printf("Got Beaqcon Fata\n"); +printf("headlen %d\n",bd.head_len); NLA_PUT(msg, NL80211_ATTR_BEACON_HEAD, bd.head_len, bd.head); + +printf ("Coter\n"); + { + for (int i=0; i